github.com/aavshr/aws-sdk-go@v1.41.3/private/model/api/legacy_io_suffix.go (about)

     1  //go:build codegen
     2  // +build codegen
     3  
     4  package api
     5  
     6  // IoSuffix represents map of service to shape names that
     7  // are suffixed with `Input`, `Output` string and are not
     8  // Input or Output shapes used by any operation within
     9  // the service enclosure.
    10  type IoSuffix map[string]map[string]struct{}
    11  
    12  // LegacyIoSuffix returns if the shape names are legacy
    13  // names that contain "Input" and "Output" name as suffix.
    14  func (i IoSuffix) LegacyIOSuffix(a *API, shapeName string) bool {
    15  	names, ok := i[a.name]
    16  	if !ok {
    17  		return false
    18  	}
    19  
    20  	_, ok = names[shapeName]
    21  	return ok
    22  }
    23  
    24  // legacyIOSuffixed is the list of known shapes that have "Input" and "Output"
    25  // as suffix in shape name, but are not the actual input, output shape
    26  // for a corresponding service operation.
    27  var legacyIOSuffixed = IoSuffix{
    28  	"TranscribeService": {
    29  		"RedactionOutput": struct{}{},
    30  	},
    31  	"Textract": {"HumanLoopActivationOutput": struct{}{}},
    32  	"Synthetics": {
    33  		"CanaryRunConfigInput":  struct{}{},
    34  		"CanaryScheduleOutput":  struct{}{},
    35  		"VpcConfigInput":        struct{}{},
    36  		"VpcConfigOutput":       struct{}{},
    37  		"CanaryCodeOutput":      struct{}{},
    38  		"CanaryCodeInput":       struct{}{},
    39  		"CanaryRunConfigOutput": struct{}{},
    40  		"CanaryScheduleInput":   struct{}{},
    41  	},
    42  	"SWF": {"FunctionInput": struct{}{}},
    43  	"SFN": {
    44  		"InvalidOutput":         struct{}{},
    45  		"InvalidExecutionInput": struct{}{},
    46  		"SensitiveDataJobInput": struct{}{},
    47  	},
    48  	"SSM": {
    49  		"CommandPluginOutput":                 struct{}{},
    50  		"MaintenanceWindowStepFunctionsInput": struct{}{},
    51  		"InvocationTraceOutput":               struct{}{},
    52  	},
    53  	"SSMIncidents": {"RegionMapInput": struct{}{}},
    54  
    55  	"SMS": {
    56  		"AppValidationOutput":    struct{}{},
    57  		"ServerValidationOutput": struct{}{},
    58  		"ValidationOutput":       struct{}{},
    59  		"SSMOutput":              struct{}{},
    60  	},
    61  	"ServiceDiscovery": {"InvalidInput": struct{}{}},
    62  	"ServiceCatalog": {
    63  		"RecordOutput":               struct{}{},
    64  		"ProvisioningArtifactOutput": struct{}{},
    65  	},
    66  	"Schemas": {
    67  		"GetDiscoveredSchemaVersionItemInput":         struct{}{},
    68  		"__listOfGetDiscoveredSchemaVersionItemInput": struct{}{},
    69  	},
    70  
    71  	"SageMaker": {
    72  		"ProcessingOutput":             struct{}{},
    73  		"TaskInput":                    struct{}{},
    74  		"TransformOutput":              struct{}{},
    75  		"ModelBiasJobInput":            struct{}{},
    76  		"TransformInput":               struct{}{},
    77  		"LabelingJobOutput":            struct{}{},
    78  		"DataQualityJobInput":          struct{}{},
    79  		"MonitoringOutput":             struct{}{},
    80  		"MonitoringS3Output":           struct{}{},
    81  		"MonitoringInput":              struct{}{},
    82  		"ProcessingS3Output":           struct{}{},
    83  		"ModelQualityJobInput":         struct{}{},
    84  		"ProcessingInput":              struct{}{},
    85  		"ProcessingFeatureStoreOutput": struct{}{},
    86  		"ModelExplainabilityJobInput":  struct{}{},
    87  		"ProcessingS3Input":            struct{}{},
    88  		"MonitoringGroundTruthS3Input": struct{}{},
    89  		"EdgePresetDeploymentOutput":   struct{}{},
    90  		"EndpointInput":                struct{}{},
    91  	},
    92  
    93  	"AugmentedAIRuntime": {"HumanLoopOutput": struct{}{}, "HumanLoopInput": struct{}{}},
    94  
    95  	"S3": {
    96  		"ParquetInput": struct{}{},
    97  		"CSVOutput":    struct{}{},
    98  		"JSONOutput":   struct{}{},
    99  		"JSONInput":    struct{}{},
   100  		"CSVInput":     struct{}{},
   101  	},
   102  
   103  	"Route53Domains": {"InvalidInput": struct{}{}},
   104  	"Route53":        {"InvalidInput": struct{}{}},
   105  	"RoboMaker":      {"S3KeyOutput": struct{}{}},
   106  
   107  	"Rekognition": {
   108  		"StreamProcessorInput":      struct{}{},
   109  		"HumanLoopActivationOutput": struct{}{},
   110  		"StreamProcessorOutput":     struct{}{},
   111  	},
   112  
   113  	"Proton": {"TemplateVersionSourceInput": struct{}{}, "CompatibleEnvironmentTemplateInput": struct{}{}},
   114  
   115  	"Personalize": {
   116  		"BatchInferenceJobInput":  struct{}{},
   117  		"BatchInferenceJobOutput": struct{}{},
   118  		"DatasetExportJobOutput":  struct{}{},
   119  	},
   120  
   121  	"MWAA": {
   122  		"ModuleLoggingConfigurationInput": struct{}{},
   123  		"LoggingConfigurationInput":       struct{}{},
   124  		"UpdateNetworkConfigurationInput": struct{}{},
   125  	},
   126  
   127  	"MQ": {"LdapServerMetadataOutput": struct{}{}, "LdapServerMetadataInput": struct{}{}},
   128  
   129  	"MediaLive": {
   130  		"InputDeviceConfiguredInput": struct{}{},
   131  		"__listOfOutput":             struct{}{},
   132  		"Input":                      struct{}{},
   133  		"__listOfInput":              struct{}{},
   134  		"Output":                     struct{}{},
   135  		"InputDeviceActiveInput":     struct{}{},
   136  	},
   137  
   138  	"MediaConvert": {
   139  		"Input":          struct{}{},
   140  		"__listOfOutput": struct{}{},
   141  		"Output":         struct{}{},
   142  		"__listOfInput":  struct{}{},
   143  	},
   144  	"MediaConnect": {"Output": struct{}{}, "__listOfOutput": struct{}{}},
   145  
   146  	"Lambda": {
   147  		"LayerVersionContentOutput": struct{}{},
   148  		"LayerVersionContentInput":  struct{}{},
   149  	},
   150  
   151  	"KinesisAnalyticsV2": {
   152  		"KinesisStreamsInput":   struct{}{},
   153  		"KinesisFirehoseInput":  struct{}{},
   154  		"LambdaOutput":          struct{}{},
   155  		"Output":                struct{}{},
   156  		"KinesisFirehoseOutput": struct{}{},
   157  		"Input":                 struct{}{},
   158  		"KinesisStreamsOutput":  struct{}{},
   159  	},
   160  
   161  	"KinesisAnalytics": {
   162  		"Output":                struct{}{},
   163  		"KinesisFirehoseInput":  struct{}{},
   164  		"LambdaOutput":          struct{}{},
   165  		"KinesisFirehoseOutput": struct{}{},
   166  		"KinesisStreamsInput":   struct{}{},
   167  		"Input":                 struct{}{},
   168  		"KinesisStreamsOutput":  struct{}{},
   169  	},
   170  
   171  	"IoTEvents": {"Input": struct{}{}},
   172  	"IoT":       {"PutItemInput": struct{}{}},
   173  
   174  	"Honeycode": {"CellInput": struct{}{}, "RowDataInput": struct{}{}},
   175  
   176  	"Glue": {
   177  		"TableInput":               struct{}{},
   178  		"UserDefinedFunctionInput": struct{}{},
   179  		"DatabaseInput":            struct{}{},
   180  		"PartitionInput":           struct{}{},
   181  		"ConnectionInput":          struct{}{},
   182  	},
   183  
   184  	"Glacier": {
   185  		"CSVInput":                   struct{}{},
   186  		"CSVOutput":                  struct{}{},
   187  		"InventoryRetrievalJobInput": struct{}{},
   188  	},
   189  
   190  	"FIS": {
   191  		"CreateExperimentTemplateTargetInput":        struct{}{},
   192  		"CreateExperimentTemplateStopConditionInput": struct{}{},
   193  		"UpdateExperimentTemplateStopConditionInput": struct{}{},
   194  		"CreateExperimentTemplateActionInput":        struct{}{},
   195  		"UpdateExperimentTemplateTargetInput":        struct{}{},
   196  	},
   197  
   198  	"Firehose": {"DeliveryStreamEncryptionConfigurationInput": struct{}{}},
   199  
   200  	"CloudWatchEvents": {"TransformerInput": struct{}{}, "TargetInput": struct{}{}},
   201  
   202  	"EventBridge": {"TransformerInput": struct{}{}, "TargetInput": struct{}{}},
   203  
   204  	"ElasticsearchService": {
   205  		"AutoTuneOptionsOutput":        struct{}{},
   206  		"SAMLOptionsInput":             struct{}{},
   207  		"AdvancedSecurityOptionsInput": struct{}{},
   208  		"SAMLOptionsOutput":            struct{}{},
   209  		"AutoTuneOptionsInput":         struct{}{},
   210  	},
   211  
   212  	"ElasticTranscoder": {
   213  		"JobOutput":       struct{}{},
   214  		"CreateJobOutput": struct{}{},
   215  		"JobInput":        struct{}{},
   216  	},
   217  
   218  	"ElastiCache": {
   219  		"UserGroupIdListInput": struct{}{},
   220  		"PasswordListInput":    struct{}{},
   221  		"UserIdListInput":      struct{}{},
   222  	},
   223  
   224  	"ECRPublic":  {"RepositoryCatalogDataInput": struct{}{}},
   225  	"DeviceFarm": {"TestGridUrlExpiresInSecondsInput": struct{}{}},
   226  
   227  	"GlueDataBrew": {"Output": struct{}{}, "Input": struct{}{}, "OverwriteOutput": struct{}{}},
   228  
   229  	"CodePipeline": {"ActionExecutionInput": struct{}{}, "ActionExecutionOutput": struct{}{}},
   230  
   231  	"CodeBuild": {"ValueInput": struct{}{}, "KeyInput": struct{}{}},
   232  
   233  	"CloudFormation": {"Output": struct{}{}},
   234  
   235  	"Backup": {
   236  		"PlanInput":  struct{}{},
   237  		"RulesInput": struct{}{},
   238  		"RuleInput":  struct{}{},
   239  	},
   240  
   241  	"ApplicationInsights": {"StatesInput": struct{}{}},
   242  
   243  	"ApiGatewayV2": {
   244  		"TlsConfigInput":               struct{}{},
   245  		"MutualTlsAuthenticationInput": struct{}{},
   246  	},
   247  	"APIGateway": {"MutualTlsAuthenticationInput": struct{}{}},
   248  }