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

     1  //go:build codegen
     2  // +build codegen
     3  
     4  package api
     5  
     6  // ServiceName returns the SDK's naming of the service. Has
     7  // backwards compatibility built in for services that were
     8  // incorrectly named with the service's endpoint prefix.
     9  func ServiceName(a *API) string {
    10  	if oldName, ok := oldServiceNames[a.PackageName()]; ok {
    11  		return oldName
    12  	}
    13  
    14  	return ServiceID(a)
    15  }
    16  
    17  var oldServiceNames = map[string]string{
    18  	"migrationhub":                    "mgh",
    19  	"acmpca":                          "acm-pca",
    20  	"acm":                             "acm",
    21  	"alexaforbusiness":                "a4b",
    22  	"apigateway":                      "apigateway",
    23  	"applicationautoscaling":          "autoscaling",
    24  	"appstream":                       "appstream2",
    25  	"appsync":                         "appsync",
    26  	"athena":                          "athena",
    27  	"autoscalingplans":                "autoscaling",
    28  	"autoscaling":                     "autoscaling",
    29  	"batch":                           "batch",
    30  	"budgets":                         "budgets",
    31  	"costexplorer":                    "ce",
    32  	"cloud9":                          "cloud9",
    33  	"clouddirectory":                  "clouddirectory",
    34  	"cloudformation":                  "cloudformation",
    35  	"cloudfront":                      "cloudfront",
    36  	"cloudhsm":                        "cloudhsm",
    37  	"cloudhsmv2":                      "cloudhsmv2",
    38  	"cloudsearch":                     "cloudsearch",
    39  	"cloudsearchdomain":               "cloudsearchdomain",
    40  	"cloudtrail":                      "cloudtrail",
    41  	"codebuild":                       "codebuild",
    42  	"codecommit":                      "codecommit",
    43  	"codedeploy":                      "codedeploy",
    44  	"codepipeline":                    "codepipeline",
    45  	"codestar":                        "codestar",
    46  	"cognitoidentity":                 "cognito-identity",
    47  	"cognitoidentityprovider":         "cognito-idp",
    48  	"cognitosync":                     "cognito-sync",
    49  	"comprehend":                      "comprehend",
    50  	"configservice":                   "config",
    51  	"connect":                         "connect",
    52  	"costandusagereportservice":       "cur",
    53  	"datapipeline":                    "datapipeline",
    54  	"dax":                             "dax",
    55  	"devicefarm":                      "devicefarm",
    56  	"directconnect":                   "directconnect",
    57  	"applicationdiscoveryservice":     "discovery",
    58  	"databasemigrationservice":        "dms",
    59  	"directoryservice":                "ds",
    60  	"dynamodb":                        "dynamodb",
    61  	"ec2":                             "ec2",
    62  	"ecr":                             "ecr",
    63  	"ecs":                             "ecs",
    64  	"eks":                             "eks",
    65  	"elasticache":                     "elasticache",
    66  	"elasticbeanstalk":                "elasticbeanstalk",
    67  	"efs":                             "elasticfilesystem",
    68  	"elb":                             "elasticloadbalancing",
    69  	"elbv2":                           "elasticloadbalancing",
    70  	"emr":                             "elasticmapreduce",
    71  	"elastictranscoder":               "elastictranscoder",
    72  	"ses":                             "email",
    73  	"marketplaceentitlementservice":   "entitlement.marketplace",
    74  	"elasticsearchservice":            "es",
    75  	"cloudwatchevents":                "events",
    76  	"firehose":                        "firehose",
    77  	"fms":                             "fms",
    78  	"gamelift":                        "gamelift",
    79  	"glacier":                         "glacier",
    80  	"glue":                            "glue",
    81  	"greengrass":                      "greengrass",
    82  	"guardduty":                       "guardduty",
    83  	"health":                          "health",
    84  	"iam":                             "iam",
    85  	"inspector":                       "inspector",
    86  	"iotdataplane":                    "data.iot",
    87  	"iotjobsdataplane":                "data.jobs.iot",
    88  	"iot":                             "iot",
    89  	"iot1clickdevicesservice":         "devices.iot1click",
    90  	"iot1clickprojects":               "projects.iot1click",
    91  	"iotanalytics":                    "iotanalytics",
    92  	"kinesisvideoarchivedmedia":       "kinesisvideo",
    93  	"kinesisvideomedia":               "kinesisvideo",
    94  	"kinesis":                         "kinesis",
    95  	"kinesisanalytics":                "kinesisanalytics",
    96  	"kinesisvideo":                    "kinesisvideo",
    97  	"kms":                             "kms",
    98  	"lambda":                          "lambda",
    99  	"lexmodelbuildingservice":         "models.lex",
   100  	"lightsail":                       "lightsail",
   101  	"cloudwatchlogs":                  "logs",
   102  	"machinelearning":                 "machinelearning",
   103  	"marketplacecommerceanalytics":    "marketplacecommerceanalytics",
   104  	"mediaconvert":                    "mediaconvert",
   105  	"medialive":                       "medialive",
   106  	"mediapackage":                    "mediapackage",
   107  	"mediastoredata":                  "data.mediastore",
   108  	"mediastore":                      "mediastore",
   109  	"mediatailor":                     "api.mediatailor",
   110  	"marketplacemetering":             "metering.marketplace",
   111  	"mobile":                          "mobile",
   112  	"mobileanalytics":                 "mobileanalytics",
   113  	"cloudwatch":                      "monitoring",
   114  	"mq":                              "mq",
   115  	"mturk":                           "mturk-requester",
   116  	"neptune":                         "rds",
   117  	"opsworks":                        "opsworks",
   118  	"opsworkscm":                      "opsworks-cm",
   119  	"organizations":                   "organizations",
   120  	"pi":                              "pi",
   121  	"pinpoint":                        "pinpoint",
   122  	"polly":                           "polly",
   123  	"pricing":                         "api.pricing",
   124  	"rds":                             "rds",
   125  	"redshift":                        "redshift",
   126  	"rekognition":                     "rekognition",
   127  	"resourcegroups":                  "resource-groups",
   128  	"resourcegroupstaggingapi":        "tagging",
   129  	"route53":                         "route53",
   130  	"route53domains":                  "route53domains",
   131  	"lexruntimeservice":               "runtime.lex",
   132  	"sagemakerruntime":                "runtime.sagemaker",
   133  	"s3":                              "s3",
   134  	"sagemaker":                       "sagemaker",
   135  	"simpledb":                        "sdb",
   136  	"secretsmanager":                  "secretsmanager",
   137  	"serverlessapplicationrepository": "serverlessrepo",
   138  	"servicecatalog":                  "servicecatalog",
   139  	"servicediscovery":                "servicediscovery",
   140  	"shield":                          "shield",
   141  	"sms":                             "sms",
   142  	"snowball":                        "snowball",
   143  	"sns":                             "sns",
   144  	"sqs":                             "sqs",
   145  	"ssm":                             "ssm",
   146  	"sfn":                             "states",
   147  	"storagegateway":                  "storagegateway",
   148  	"dynamodbstreams":                 "streams.dynamodb",
   149  	"sts":                             "sts",
   150  	"support":                         "support",
   151  	"swf":                             "swf",
   152  	"transcribeservice":               "transcribe",
   153  	"translate":                       "translate",
   154  	"wafregional":                     "waf-regional",
   155  	"waf":                             "waf",
   156  	"workdocs":                        "workdocs",
   157  	"workmail":                        "workmail",
   158  	"workspaces":                      "workspaces",
   159  	"xray":                            "xray",
   160  }