From 5ba5c3bc4082cbb5f0d29b79b813e536163604d0 Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Tue, 11 Aug 2020 00:44:23 +0000 Subject: [PATCH 1/3] chore: add partition to regioninfo --- .../aws/typescript/codegen/EndpointGenerator.java | 10 ++++++++-- packages/types/src/util.ts | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java index b1d6b5e6604b..265a0648e633 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java +++ b/codegen/smithy-aws-typescript-codegen/src/main/java/software/amazon/smithy/aws/typescript/codegen/EndpointGenerator.java @@ -46,6 +46,7 @@ final class EndpointGenerator implements Runnable { private final String endpointPrefix; private final Map partitions = new TreeMap<>(); private final Map endpoints = new TreeMap<>(); + private final Map regionPartitionsMap = new TreeMap<>(); EndpointGenerator(ServiceShape service, TypeScriptWriter writer) { this.writer = writer; @@ -99,6 +100,7 @@ private void loadServiceEndpoints() { hostName = hostName.replace("{region}", entry.getKey()); config = config.withMember("hostname", hostName); endpoints.put(entry.getKey(), config); + regionPartitionsMap.put(entry.getKey(), partition); } } } @@ -142,7 +144,7 @@ private void writeEndpointProviderFunction() { writer.write("// First, try to match exact region names."); for (Map.Entry entry : endpoints.entrySet()) { writer.write("case $S:", entry.getKey()).indent(); - writeEndpointSpecificResolver(entry.getValue()); + writeEndpointSpecificResolver(entry.getKey(), entry.getValue()); writer.write("break;"); writer.dedent(); } @@ -170,16 +172,18 @@ private void writePartitionEndpointResolver(Partition partition) { writer.openBlock("regionInfo = {", "};", () -> { String template = partition.templateVariableName; writer.write("hostname: $L.replace(\"{region}\", region),", template); + writer.write("partition: $S,", partition.ID); writeAdditionalEndpointSettings(partition.getDefaults()); }); } ); } - private void writeEndpointSpecificResolver(ObjectNode resolved) { + private void writeEndpointSpecificResolver(String region, ObjectNode resolved) { String hostname = resolved.expectStringMember("hostname").getValue(); writer.openBlock("regionInfo = {", "};", () -> { writer.write("hostname: $S,", hostname); + writer.write("partition: $S,", regionPartitionsMap.get(region).ID); writeAdditionalEndpointSettings(resolved); }); } @@ -202,6 +206,7 @@ private final class Partition { final String templateVariableName; final String templateValue; final String dnsSuffix; + final String ID; private final ObjectNode config; private Partition(ObjectNode config, String partition) { @@ -222,6 +227,7 @@ private Partition(ObjectNode config, String partition) { regionVariableName = snakePartition + "_REGIONS"; dnsSuffix = config.expectStringMember("dnsSuffix").getValue(); + ID = partition; } ObjectNode getDefaults() { diff --git a/packages/types/src/util.ts b/packages/types/src/util.ts index 814bb6034ab9..796e82826ab5 100644 --- a/packages/types/src/util.ts +++ b/packages/types/src/util.ts @@ -80,6 +80,7 @@ export interface RegionInfo { path?: string; signingService?: string; signingRegion?: string; + partition?: string; } /** From 7ba8a1fd96c0cacef533c8040d93e3fb96b42fda Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Tue, 11 Aug 2020 19:47:03 +0000 Subject: [PATCH 2/3] feat: update clients endpoint providers --- clients/client-accessanalyzer/endpoints.ts | 6 +++ clients/client-acm-pca/endpoints.ts | 26 +++++++++++++ clients/client-acm/endpoints.ts | 26 +++++++++++++ .../client-alexa-for-business/endpoints.ts | 7 ++++ clients/client-amplify/endpoints.ts | 6 +++ clients/client-api-gateway/endpoints.ts | 29 ++++++++++++++ .../endpoints.ts | 6 +++ clients/client-apigatewayv2/endpoints.ts | 29 ++++++++++++++ clients/client-app-mesh/endpoints.ts | 20 ++++++++++ clients/client-appconfig/endpoints.ts | 6 +++ .../endpoints.ts | 30 +++++++++++++++ .../endpoints.ts | 8 ++++ .../client-application-insights/endpoints.ts | 6 +++ clients/client-appstream/endpoints.ts | 16 ++++++++ clients/client-appsync/endpoints.ts | 17 +++++++++ clients/client-athena/endpoints.ts | 25 ++++++++++++ .../client-auto-scaling-plans/endpoints.ts | 19 ++++++++++ clients/client-auto-scaling/endpoints.ts | 30 +++++++++++++++ clients/client-backup/endpoints.ts | 24 ++++++++++++ clients/client-batch/endpoints.ts | 26 +++++++++++++ clients/client-budgets/endpoints.ts | 5 +++ clients/client-chime/endpoints.ts | 5 +++ clients/client-cloud9/endpoints.ts | 13 +++++++ clients/client-clouddirectory/endpoints.ts | 16 ++++++++ clients/client-cloudformation/endpoints.ts | 30 +++++++++++++++ clients/client-cloudfront/endpoints.ts | 5 +++ clients/client-cloudhsm-v2/endpoints.ts | 26 +++++++++++++ clients/client-cloudhsm/endpoints.ts | 17 +++++++++ .../client-cloudsearch-domain/endpoints.ts | 6 +++ clients/client-cloudsearch/endpoints.ts | 16 ++++++++ clients/client-cloudtrail/endpoints.ts | 30 +++++++++++++++ clients/client-cloudwatch-events/endpoints.ts | 30 +++++++++++++++ clients/client-cloudwatch-logs/endpoints.ts | 30 +++++++++++++++ clients/client-cloudwatch/endpoints.ts | 30 +++++++++++++++ clients/client-codebuild/endpoints.ts | 32 ++++++++++++++++ clients/client-codecommit/endpoints.ts | 26 +++++++++++++ clients/client-codedeploy/endpoints.ts | 35 +++++++++++++++++ clients/client-codeguru-reviewer/endpoints.ts | 6 +++ clients/client-codeguruprofiler/endpoints.ts | 6 +++ clients/client-codepipeline/endpoints.ts | 22 +++++++++++ .../client-codestar-connections/endpoints.ts | 6 +++ .../endpoints.ts | 6 +++ clients/client-codestar/endpoints.ts | 18 +++++++++ .../endpoints.ts | 18 +++++++++ clients/client-cognito-identity/endpoints.ts | 19 ++++++++++ clients/client-cognito-sync/endpoints.ts | 17 +++++++++ clients/client-comprehend/endpoints.ts | 16 ++++++++ clients/client-comprehendmedical/endpoints.ts | 13 +++++++ clients/client-compute-optimizer/endpoints.ts | 6 +++ clients/client-config-service/endpoints.ts | 30 +++++++++++++++ clients/client-connect/endpoints.ts | 11 ++++++ .../client-connectparticipant/endpoints.ts | 6 +++ .../endpoints.ts | 7 ++++ clients/client-cost-explorer/endpoints.ts | 5 +++ clients/client-data-pipeline/endpoints.ts | 12 ++++++ .../endpoints.ts | 30 +++++++++++++++ clients/client-dataexchange/endpoints.ts | 17 +++++++++ clients/client-datasync/endpoints.ts | 31 +++++++++++++++ clients/client-dax/endpoints.ts | 20 ++++++++++ clients/client-detective/endpoints.ts | 6 +++ clients/client-device-farm/endpoints.ts | 7 ++++ clients/client-direct-connect/endpoints.ts | 30 +++++++++++++++ clients/client-directory-service/endpoints.ts | 27 +++++++++++++ clients/client-dlm/endpoints.ts | 6 +++ clients/client-docdb/endpoints.ts | 30 +++++++++++++++ clients/client-dynamodb-streams/endpoints.ts | 37 ++++++++++++++++++ clients/client-dynamodb/endpoints.ts | 38 +++++++++++++++++++ clients/client-ebs/endpoints.ts | 6 +++ .../client-ec2-instance-connect/endpoints.ts | 6 +++ clients/client-ec2/endpoints.ts | 30 +++++++++++++++ clients/client-ecr/endpoints.ts | 29 ++++++++++++++ clients/client-ecs/endpoints.ts | 29 ++++++++++++++ clients/client-efs/endpoints.ts | 25 ++++++++++++ clients/client-eks/endpoints.ts | 6 +++ clients/client-elastic-beanstalk/endpoints.ts | 28 ++++++++++++++ clients/client-elastic-inference/endpoints.ts | 6 +++ .../endpoints.ts | 30 +++++++++++++++ .../endpoints.ts | 30 +++++++++++++++ .../client-elastic-transcoder/endpoints.ts | 14 +++++++ clients/client-elasticache/endpoints.ts | 31 +++++++++++++++ .../client-elasticsearch-service/endpoints.ts | 29 ++++++++++++++ clients/client-emr/endpoints.ts | 30 +++++++++++++++ clients/client-eventbridge/endpoints.ts | 30 +++++++++++++++ clients/client-firehose/endpoints.ts | 28 ++++++++++++++ clients/client-fms/endpoints.ts | 22 +++++++++++ clients/client-forecast/endpoints.ts | 12 ++++++ clients/client-forecastquery/endpoints.ts | 12 ++++++ clients/client-frauddetector/endpoints.ts | 6 +++ clients/client-fsx/endpoints.ts | 17 +++++++++ clients/client-gamelift/endpoints.ts | 21 ++++++++++ clients/client-glacier/endpoints.ts | 30 +++++++++++++++ .../client-global-accelerator/endpoints.ts | 6 +++ clients/client-glue/endpoints.ts | 27 +++++++++++++ clients/client-greengrass/endpoints.ts | 19 ++++++++++ clients/client-groundstation/endpoints.ts | 8 ++++ clients/client-guardduty/endpoints.ts | 29 ++++++++++++++ clients/client-health/endpoints.ts | 10 +++++ clients/client-iam/endpoints.ts | 5 +++ clients/client-imagebuilder/endpoints.ts | 6 +++ clients/client-inspector/endpoints.ts | 20 ++++++++++ .../endpoints.ts | 6 +++ .../client-iot-1click-projects/endpoints.ts | 13 +++++++ clients/client-iot-data-plane/endpoints.ts | 27 +++++++++++++ clients/client-iot-events-data/endpoints.ts | 6 +++ clients/client-iot-events/endpoints.ts | 16 ++++++++ .../client-iot-jobs-data-plane/endpoints.ts | 6 +++ clients/client-iot/endpoints.ts | 27 +++++++++++++ clients/client-iotanalytics/endpoints.ts | 12 ++++++ .../client-iotsecuretunneling/endpoints.ts | 6 +++ clients/client-iotthingsgraph/endpoints.ts | 12 ++++++ clients/client-kafka/endpoints.ts | 23 +++++++++++ clients/client-kendra/endpoints.ts | 6 +++ .../client-kinesis-analytics-v2/endpoints.ts | 19 ++++++++++ clients/client-kinesis-analytics/endpoints.ts | 19 ++++++++++ .../endpoints.ts | 12 ++++++ .../client-kinesis-video-media/endpoints.ts | 12 ++++++ .../endpoints.ts | 12 ++++++ clients/client-kinesis-video/endpoints.ts | 12 ++++++ clients/client-kinesis/endpoints.ts | 30 +++++++++++++++ clients/client-kms/endpoints.ts | 31 +++++++++++++++ clients/client-lakeformation/endpoints.ts | 19 ++++++++++ clients/client-lambda/endpoints.ts | 29 ++++++++++++++ .../endpoints.ts | 9 +++++ .../client-lex-runtime-service/endpoints.ts | 9 +++++ clients/client-license-manager/endpoints.ts | 28 ++++++++++++++ clients/client-lightsail/endpoints.ts | 19 ++++++++++ clients/client-machine-learning/endpoints.ts | 8 ++++ clients/client-macie/endpoints.ts | 6 +++ clients/client-managedblockchain/endpoints.ts | 6 +++ .../client-marketplace-catalog/endpoints.ts | 6 +++ .../endpoints.ts | 7 ++++ .../endpoints.ts | 7 ++++ .../client-marketplace-metering/endpoints.ts | 26 +++++++++++++ clients/client-mediaconnect/endpoints.ts | 21 ++++++++++ clients/client-mediaconvert/endpoints.ts | 23 +++++++++++ clients/client-medialive/endpoints.ts | 20 ++++++++++ clients/client-mediapackage-vod/endpoints.ts | 6 +++ clients/client-mediapackage/endpoints.ts | 19 ++++++++++ clients/client-mediastore-data/endpoints.ts | 14 +++++++ clients/client-mediastore/endpoints.ts | 14 +++++++ clients/client-mediatailor/endpoints.ts | 13 +++++++ clients/client-migration-hub/endpoints.ts | 8 ++++ .../client-migrationhub-config/endpoints.ts | 6 +++ clients/client-mobile/endpoints.ts | 6 +++ clients/client-mq/endpoints.ts | 24 ++++++++++++ clients/client-mturk/endpoints.ts | 8 ++++ clients/client-neptune/endpoints.ts | 30 +++++++++++++++ clients/client-networkmanager/endpoints.ts | 6 +++ clients/client-opsworks/endpoints.ts | 21 ++++++++++ clients/client-opsworkscm/endpoints.ts | 15 ++++++++ clients/client-organizations/endpoints.ts | 5 +++ clients/client-outposts/endpoints.ts | 6 +++ .../client-personalize-events/endpoints.ts | 6 +++ .../client-personalize-runtime/endpoints.ts | 6 +++ clients/client-personalize/endpoints.ts | 6 +++ clients/client-pi/endpoints.ts | 6 +++ clients/client-pinpoint-email/endpoints.ts | 12 ++++++ .../client-pinpoint-sms-voice/endpoints.ts | 6 +++ clients/client-pinpoint/endpoints.ts | 12 ++++++ clients/client-polly/endpoints.ts | 24 ++++++++++++ clients/client-pricing/endpoints.ts | 8 ++++ clients/client-qldb-session/endpoints.ts | 15 ++++++++ clients/client-qldb/endpoints.ts | 15 ++++++++ clients/client-quicksight/endpoints.ts | 6 +++ clients/client-ram/endpoints.ts | 24 ++++++++++++ clients/client-rds-data/endpoints.ts | 6 +++ clients/client-rds/endpoints.ts | 30 +++++++++++++++ clients/client-redshift/endpoints.ts | 30 +++++++++++++++ clients/client-rekognition/endpoints.ts | 19 ++++++++++ .../endpoints.ts | 28 ++++++++++++++ clients/client-resource-groups/endpoints.ts | 32 ++++++++++++++++ clients/client-robomaker/endpoints.ts | 13 +++++++ clients/client-route-53-domains/endpoints.ts | 7 ++++ clients/client-route-53/endpoints.ts | 5 +++ clients/client-route53resolver/endpoints.ts | 22 +++++++++++ clients/client-s3-control/endpoints.ts | 32 ++++++++++++++++ clients/client-s3/endpoints.ts | 32 ++++++++++++++++ .../client-sagemaker-a2i-runtime/endpoints.ts | 6 +++ clients/client-sagemaker-runtime/endpoints.ts | 30 +++++++++++++++ clients/client-sagemaker/endpoints.ts | 30 +++++++++++++++ clients/client-savingsplans/endpoints.ts | 5 +++ clients/client-schemas/endpoints.ts | 6 +++ clients/client-secrets-manager/endpoints.ts | 32 ++++++++++++++++ clients/client-securityhub/endpoints.ts | 24 ++++++++++++ .../endpoints.ts | 26 +++++++++++++ clients/client-service-catalog/endpoints.ts | 28 ++++++++++++++ clients/client-service-quotas/endpoints.ts | 6 +++ clients/client-servicediscovery/endpoints.ts | 24 ++++++++++++ clients/client-ses/endpoints.ts | 12 ++++++ clients/client-sesv2/endpoints.ts | 12 ++++++ clients/client-sfn/endpoints.ts | 30 +++++++++++++++ clients/client-shield/endpoints.ts | 7 ++++ clients/client-signer/endpoints.ts | 6 +++ clients/client-sms/endpoints.ts | 28 ++++++++++++++ clients/client-snowball/endpoints.ts | 26 +++++++++++++ clients/client-sns/endpoints.ts | 30 +++++++++++++++ clients/client-sqs/endpoints.ts | 34 +++++++++++++++++ clients/client-ssm/endpoints.ts | 28 ++++++++++++++ clients/client-sso-oidc/endpoints.ts | 15 ++++++++ clients/client-sso/endpoints.ts | 15 ++++++++ clients/client-storage-gateway/endpoints.ts | 26 +++++++++++++ clients/client-sts/endpoints.ts | 35 +++++++++++++++++ clients/client-support/endpoints.ts | 10 +++++ clients/client-swf/endpoints.ts | 30 +++++++++++++++ clients/client-textract/endpoints.ts | 6 +++ .../client-transcribe-streaming/endpoints.ts | 12 ++++++ clients/client-transcribe/endpoints.ts | 26 +++++++++++++ clients/client-transfer/endpoints.ts | 22 +++++++++++ clients/client-translate/endpoints.ts | 21 ++++++++++ clients/client-waf-regional/endpoints.ts | 23 +++++++++++ clients/client-waf/endpoints.ts | 5 +++ clients/client-wafv2/endpoints.ts | 6 +++ clients/client-workdocs/endpoints.ts | 12 ++++++ clients/client-worklink/endpoints.ts | 6 +++ clients/client-workmail/endpoints.ts | 9 +++++ .../client-workmailmessageflow/endpoints.ts | 6 +++ clients/client-workspaces/endpoints.ts | 20 ++++++++++ clients/client-xray/endpoints.ts | 24 ++++++++++++ protocol_tests/aws-ec2/endpoints.ts | 6 +++ protocol_tests/aws-json/endpoints.ts | 6 +++ protocol_tests/aws-query/endpoints.ts | 6 +++ protocol_tests/aws-restjson/endpoints.ts | 6 +++ protocol_tests/aws-restxml/endpoints.ts | 6 +++ 223 files changed, 3796 insertions(+) diff --git a/clients/client-accessanalyzer/endpoints.ts b/clients/client-accessanalyzer/endpoints.ts index 5d60a7d6c402..e1e12d62a05c 100644 --- a/clients/client-accessanalyzer/endpoints.ts +++ b/clients/client-accessanalyzer/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-acm-pca/endpoints.ts b/clients/client-acm-pca/endpoints.ts index c5f9fad8b390..8629337a8c19 100644 --- a/clients/client-acm-pca/endpoints.ts +++ b/clients/client-acm-pca/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "acm-pca.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "acm-pca.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "acm-pca.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "acm-pca.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "acm-pca.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "acm-pca.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "acm-pca.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "acm-pca.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "acm-pca.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "acm-pca.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "acm-pca.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "acm-pca.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "acm-pca.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "acm-pca.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "acm-pca.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "acm-pca.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "acm-pca.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "acm-pca.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "acm-pca.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "acm-pca.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-acm/endpoints.ts b/clients/client-acm/endpoints.ts index 063d4d6dc195..3b186ff82de1 100644 --- a/clients/client-acm/endpoints.ts +++ b/clients/client-acm/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "acm.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "acm.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "acm.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "acm.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "acm.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "acm.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "acm.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "acm.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "acm.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "acm.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "acm.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "acm.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "acm.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "acm.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "acm.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "acm.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "acm.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "acm.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "acm.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "acm.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-alexa-for-business/endpoints.ts b/clients/client-alexa-for-business/endpoints.ts index c70869fd6526..6e648c8d6aab 100644 --- a/clients/client-alexa-for-business/endpoints.ts +++ b/clients/client-alexa-for-business/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "a4b.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-amplify/endpoints.ts b/clients/client-amplify/endpoints.ts index eb347a220480..ba988f7518b6 100644 --- a/clients/client-amplify/endpoints.ts +++ b/clients/client-amplify/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-api-gateway/endpoints.ts b/clients/client-api-gateway/endpoints.ts index 4db3e34b2768..fa3f1270bf84 100644 --- a/clients/client-api-gateway/endpoints.ts +++ b/clients/client-api-gateway/endpoints.ts @@ -40,116 +40,139 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "apigateway.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "apigateway.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "apigateway.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "apigateway.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "apigateway.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "apigateway.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "apigateway.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "apigateway.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "apigateway.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "apigateway.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "apigateway.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "apigateway.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "apigateway.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "apigateway.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "apigateway.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "apigateway.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "apigateway.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "apigateway.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "apigateway.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "apigateway.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "apigateway.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "apigateway.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "apigateway.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -157,32 +180,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-apigatewaymanagementapi/endpoints.ts b/clients/client-apigatewaymanagementapi/endpoints.ts index 273feb865cf2..f21f85d7bbb3 100644 --- a/clients/client-apigatewaymanagementapi/endpoints.ts +++ b/clients/client-apigatewaymanagementapi/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-apigatewayv2/endpoints.ts b/clients/client-apigatewayv2/endpoints.ts index 4db3e34b2768..fa3f1270bf84 100644 --- a/clients/client-apigatewayv2/endpoints.ts +++ b/clients/client-apigatewayv2/endpoints.ts @@ -40,116 +40,139 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "apigateway.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "apigateway.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "apigateway.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "apigateway.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "apigateway.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "apigateway.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "apigateway.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "apigateway.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "apigateway.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "apigateway.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "apigateway.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "apigateway.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "apigateway.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "apigateway.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "apigateway.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "apigateway.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "apigateway.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "apigateway.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "apigateway.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "apigateway.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "apigateway.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "apigateway.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "apigateway.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -157,32 +180,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-app-mesh/endpoints.ts b/clients/client-app-mesh/endpoints.ts index 69234cd696a2..685213c7902a 100644 --- a/clients/client-app-mesh/endpoints.ts +++ b/clients/client-app-mesh/endpoints.ts @@ -40,71 +40,85 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "appmesh.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "appmesh.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "appmesh.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "appmesh.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "appmesh.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "appmesh.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "appmesh.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "appmesh.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "appmesh.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "appmesh.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "appmesh.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "appmesh.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "appmesh.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "appmesh.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -112,32 +126,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-appconfig/endpoints.ts b/clients/client-appconfig/endpoints.ts index db74fc9441e9..7d866aec97fc 100644 --- a/clients/client-appconfig/endpoints.ts +++ b/clients/client-appconfig/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-application-auto-scaling/endpoints.ts b/clients/client-application-auto-scaling/endpoints.ts index d4c7d9a96c64..a436590b035e 100644 --- a/clients/client-application-auto-scaling/endpoints.ts +++ b/clients/client-application-auto-scaling/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "application-autoscaling.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "application-autoscaling.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "application-autoscaling.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "application-autoscaling.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "application-autoscaling.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "application-autoscaling.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "application-autoscaling.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "application-autoscaling.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "application-autoscaling.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "application-autoscaling.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "application-autoscaling.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "application-autoscaling.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "application-autoscaling.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "application-autoscaling.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "application-autoscaling.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "application-autoscaling.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "application-autoscaling.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "application-autoscaling.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "application-autoscaling.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "application-autoscaling.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "autoscaling.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "autoscaling.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "application-autoscaling.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "application-autoscaling.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-application-discovery-service/endpoints.ts b/clients/client-application-discovery-service/endpoints.ts index 3d9305bbd4fc..bd72850d4b44 100644 --- a/clients/client-application-discovery-service/endpoints.ts +++ b/clients/client-application-discovery-service/endpoints.ts @@ -40,11 +40,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-central-1": regionInfo = { hostname: "discovery.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "discovery.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -52,32 +54,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-application-insights/endpoints.ts b/clients/client-application-insights/endpoints.ts index e6bea00fe557..d3b11730e179 100644 --- a/clients/client-application-insights/endpoints.ts +++ b/clients/client-application-insights/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-appstream/endpoints.ts b/clients/client-appstream/endpoints.ts index 87d27ad6a534..7e2dc2198972 100644 --- a/clients/client-appstream/endpoints.ts +++ b/clients/client-appstream/endpoints.ts @@ -40,60 +40,70 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "appstream2.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "ap-northeast-2": regionInfo = { hostname: "appstream2.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "ap-southeast-1": regionInfo = { hostname: "appstream2.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "ap-southeast-2": regionInfo = { hostname: "appstream2.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "eu-central-1": regionInfo = { hostname: "appstream2.eu-central-1.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "eu-west-1": regionInfo = { hostname: "appstream2.eu-west-1.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "fips": regionInfo = { hostname: "appstream2-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-east-1": regionInfo = { hostname: "appstream2.us-east-1.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; case "us-gov-west-1": regionInfo = { hostname: "appstream2.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "appstream", }; break; case "us-west-2": regionInfo = { hostname: "appstream2.us-west-2.amazonaws.com", + partition: "aws", signingService: "appstream", }; break; @@ -102,27 +112,32 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "appstream", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "appstream", }; } @@ -130,6 +145,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "appstream", }; } diff --git a/clients/client-appsync/endpoints.ts b/clients/client-appsync/endpoints.ts index c7dfc15d19ef..8b777ff000f8 100644 --- a/clients/client-appsync/endpoints.ts +++ b/clients/client-appsync/endpoints.ts @@ -40,56 +40,67 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "appsync.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "appsync.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "appsync.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "appsync.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "appsync.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "appsync.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "appsync.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "appsync.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "appsync.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "appsync.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "appsync.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -97,32 +108,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-athena/endpoints.ts b/clients/client-athena/endpoints.ts index 209f50e349c0..8d68bd6821a3 100644 --- a/clients/client-athena/endpoints.ts +++ b/clients/client-athena/endpoints.ts @@ -40,96 +40,115 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "athena.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "athena.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "athena.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "athena.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "athena.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "athena.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "athena.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "athena.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "athena.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "athena.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "athena.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "athena.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "athena.me-south-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "athena.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "athena.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "athena.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "athena.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "athena.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "athena.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -137,32 +156,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-auto-scaling-plans/endpoints.ts b/clients/client-auto-scaling-plans/endpoints.ts index 553d6b224462..e15a6f2b067f 100644 --- a/clients/client-auto-scaling-plans/endpoints.ts +++ b/clients/client-auto-scaling-plans/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "autoscaling-plans.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "autoscaling-plans.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "autoscaling-plans.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "autoscaling-plans.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "autoscaling-plans.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "autoscaling-plans.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "autoscaling-plans.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "autoscaling-plans.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "autoscaling-plans.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "autoscaling-plans.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "autoscaling-plans.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "autoscaling-plans.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "autoscaling-plans.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-auto-scaling/endpoints.ts b/clients/client-auto-scaling/endpoints.ts index 1e833653a832..fbdcd5b2eb60 100644 --- a/clients/client-auto-scaling/endpoints.ts +++ b/clients/client-auto-scaling/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "autoscaling.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "autoscaling.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "autoscaling.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "autoscaling.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "autoscaling.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "autoscaling.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "autoscaling.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "autoscaling.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "autoscaling.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "autoscaling.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "autoscaling.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "autoscaling.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "autoscaling.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "autoscaling.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "autoscaling.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "autoscaling.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "autoscaling.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "autoscaling.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "autoscaling.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "autoscaling.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "autoscaling.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "autoscaling.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "autoscaling.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "autoscaling.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-backup/endpoints.ts b/clients/client-backup/endpoints.ts index 49beed887c29..908a38608fa2 100644 --- a/clients/client-backup/endpoints.ts +++ b/clients/client-backup/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "backup.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "backup.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "backup.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "backup.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "backup.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "backup.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "backup.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "backup.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "backup.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "backup.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "backup.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "backup.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "backup.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "backup.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "backup.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "backup.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "backup.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "backup.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-batch/endpoints.ts b/clients/client-batch/endpoints.ts index 1de89016d8a2..8e3477a98d50 100644 --- a/clients/client-batch/endpoints.ts +++ b/clients/client-batch/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "batch.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "batch.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "batch.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "batch.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "batch.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "batch.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "batch.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "batch.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "batch.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "batch.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "batch.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "batch.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "batch.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "batch.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "batch.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "batch.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "batch.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "batch.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "batch.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "batch.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-budgets/endpoints.ts b/clients/client-budgets/endpoints.ts index 10d32e28914a..1b95a97e6e8f 100644 --- a/clients/client-budgets/endpoints.ts +++ b/clients/client-budgets/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "budgets.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -51,21 +52,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-chime/endpoints.ts b/clients/client-chime/endpoints.ts index 23528de6f56b..63ebf544d1bd 100644 --- a/clients/client-chime/endpoints.ts +++ b/clients/client-chime/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "service.chime.aws.amazon.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -51,21 +52,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-cloud9/endpoints.ts b/clients/client-cloud9/endpoints.ts index a7680c50fbc8..1f58db814c09 100644 --- a/clients/client-cloud9/endpoints.ts +++ b/clients/client-cloud9/endpoints.ts @@ -40,36 +40,43 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cloud9.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloud9.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "cloud9.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cloud9.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cloud9.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cloud9.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cloud9.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -77,32 +84,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-clouddirectory/endpoints.ts b/clients/client-clouddirectory/endpoints.ts index 830a955eaedb..d0c7c6debdea 100644 --- a/clients/client-clouddirectory/endpoints.ts +++ b/clients/client-clouddirectory/endpoints.ts @@ -40,51 +40,61 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-1": regionInfo = { hostname: "clouddirectory.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "clouddirectory.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "clouddirectory.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "clouddirectory.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "clouddirectory.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "clouddirectory.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "clouddirectory.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "clouddirectory.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "clouddirectory.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-2": regionInfo = { hostname: "clouddirectory.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -92,32 +102,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudformation/endpoints.ts b/clients/client-cloudformation/endpoints.ts index 505b8721cd28..577d5d23d026 100644 --- a/clients/client-cloudformation/endpoints.ts +++ b/clients/client-cloudformation/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "cloudformation.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "cloudformation.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cloudformation.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cloudformation.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloudformation.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cloudformation.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cloudformation.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "cloudformation.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "cloudformation.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "cloudformation.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "cloudformation.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cloudformation.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cloudformation.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "cloudformation.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "cloudformation.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "cloudformation.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cloudformation.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cloudformation.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "cloudformation.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "cloudformation.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "cloudformation.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "cloudformation.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "cloudformation.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cloudformation.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudfront/endpoints.ts b/clients/client-cloudfront/endpoints.ts index 31c549eaadf0..fceecb8e4228 100644 --- a/clients/client-cloudfront/endpoints.ts +++ b/clients/client-cloudfront/endpoints.ts @@ -40,12 +40,14 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-cn-global": regionInfo = { hostname: "cloudfront.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-northwest-1", }; break; case "aws-global": regionInfo = { hostname: "cloudfront.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -60,16 +62,19 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-cloudhsm-v2/endpoints.ts b/clients/client-cloudhsm-v2/endpoints.ts index da6a6b9cd854..7a59bd93743c 100644 --- a/clients/client-cloudhsm-v2/endpoints.ts +++ b/clients/client-cloudhsm-v2/endpoints.ts @@ -40,120 +40,140 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "cloudhsmv2.ap-east-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ap-northeast-1": regionInfo = { hostname: "cloudhsmv2.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ap-northeast-2": regionInfo = { hostname: "cloudhsmv2.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ap-south-1": regionInfo = { hostname: "cloudhsmv2.ap-south-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloudhsmv2.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ap-southeast-2": regionInfo = { hostname: "cloudhsmv2.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "ca-central-1": regionInfo = { hostname: "cloudhsmv2.ca-central-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "eu-central-1": regionInfo = { hostname: "cloudhsmv2.eu-central-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "eu-north-1": regionInfo = { hostname: "cloudhsmv2.eu-north-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "eu-west-1": regionInfo = { hostname: "cloudhsmv2.eu-west-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "eu-west-2": regionInfo = { hostname: "cloudhsmv2.eu-west-2.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "eu-west-3": regionInfo = { hostname: "cloudhsmv2.eu-west-3.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "me-south-1": regionInfo = { hostname: "cloudhsmv2.me-south-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "sa-east-1": regionInfo = { hostname: "cloudhsmv2.sa-east-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "us-east-1": regionInfo = { hostname: "cloudhsmv2.us-east-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "us-east-2": regionInfo = { hostname: "cloudhsmv2.us-east-2.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "us-gov-east-1": regionInfo = { hostname: "cloudhsmv2.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingService: "cloudhsm", }; break; case "us-gov-west-1": regionInfo = { hostname: "cloudhsmv2.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "cloudhsm", }; break; case "us-west-1": regionInfo = { hostname: "cloudhsmv2.us-west-1.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; case "us-west-2": regionInfo = { hostname: "cloudhsmv2.us-west-2.amazonaws.com", + partition: "aws", signingService: "cloudhsm", }; break; @@ -162,27 +182,32 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "cloudhsm", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "cloudhsm", }; } @@ -190,6 +215,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "cloudhsm", }; } diff --git a/clients/client-cloudhsm/endpoints.ts b/clients/client-cloudhsm/endpoints.ts index d67e526e1c34..5097634b5366 100644 --- a/clients/client-cloudhsm/endpoints.ts +++ b/clients/client-cloudhsm/endpoints.ts @@ -40,56 +40,67 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cloudhsm.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloudhsm.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cloudhsm.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cloudhsm.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "cloudhsm.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cloudhsm.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cloudhsm.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cloudhsm.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "cloudhsm.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "cloudhsm.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cloudhsm.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -97,32 +108,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudsearch-domain/endpoints.ts b/clients/client-cloudsearch-domain/endpoints.ts index 1eb9385451df..7e31b5117943 100644 --- a/clients/client-cloudsearch-domain/endpoints.ts +++ b/clients/client-cloudsearch-domain/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudsearch/endpoints.ts b/clients/client-cloudsearch/endpoints.ts index c9b2c28df574..5e4959f86c17 100644 --- a/clients/client-cloudsearch/endpoints.ts +++ b/clients/client-cloudsearch/endpoints.ts @@ -40,51 +40,61 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cloudsearch.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cloudsearch.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloudsearch.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cloudsearch.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "cloudsearch.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cloudsearch.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "cloudsearch.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cloudsearch.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "cloudsearch.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cloudsearch.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -92,32 +102,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudtrail/endpoints.ts b/clients/client-cloudtrail/endpoints.ts index 6ac859a3c779..efe90c9a0c2a 100644 --- a/clients/client-cloudtrail/endpoints.ts +++ b/clients/client-cloudtrail/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "cloudtrail.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "cloudtrail.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cloudtrail.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cloudtrail.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cloudtrail.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cloudtrail.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cloudtrail.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "cloudtrail.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "cloudtrail.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "cloudtrail.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "cloudtrail.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cloudtrail.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cloudtrail.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "cloudtrail.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "cloudtrail.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "cloudtrail.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cloudtrail.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cloudtrail.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "cloudtrail.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "cloudtrail.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "cloudtrail.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "cloudtrail.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "cloudtrail.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cloudtrail.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudwatch-events/endpoints.ts b/clients/client-cloudwatch-events/endpoints.ts index 0d7739af2e15..6a663ad4b1ab 100644 --- a/clients/client-cloudwatch-events/endpoints.ts +++ b/clients/client-cloudwatch-events/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "events.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "events.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "events.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "events.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "events.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "events.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "events.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "events.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "events.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "events.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "events.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "events.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "events.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "events.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "events.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "events.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "events.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "events.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "events.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "events.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "events.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "events.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "events.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "events.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudwatch-logs/endpoints.ts b/clients/client-cloudwatch-logs/endpoints.ts index c24e9d7f418e..84f87899f385 100644 --- a/clients/client-cloudwatch-logs/endpoints.ts +++ b/clients/client-cloudwatch-logs/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "logs.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "logs.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "logs.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "logs.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "logs.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "logs.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "logs.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "logs.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "logs.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "logs.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "logs.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "logs.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "logs.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "logs.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "logs.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "logs.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "logs.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "logs.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "logs.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "logs.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "logs.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "logs.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "logs.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "logs.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cloudwatch/endpoints.ts b/clients/client-cloudwatch/endpoints.ts index cf948b684da0..bed98a2779ce 100644 --- a/clients/client-cloudwatch/endpoints.ts +++ b/clients/client-cloudwatch/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "monitoring.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "monitoring.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "monitoring.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "monitoring.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "monitoring.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "monitoring.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "monitoring.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "monitoring.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "monitoring.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "monitoring.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "monitoring.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "monitoring.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "monitoring.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "monitoring.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "monitoring.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "monitoring.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "monitoring.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "monitoring.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "monitoring.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "monitoring.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "monitoring.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "monitoring.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "monitoring.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "monitoring.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codebuild/endpoints.ts b/clients/client-codebuild/endpoints.ts index 64ade4908a00..5fe5d89f1d2a 100644 --- a/clients/client-codebuild/endpoints.ts +++ b/clients/client-codebuild/endpoints.ts @@ -40,134 +40,160 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "codebuild.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "codebuild.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "codebuild.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "codebuild.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "codebuild.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "codebuild.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "codebuild.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "codebuild.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "codebuild.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "codebuild.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "codebuild.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "codebuild.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "codebuild.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "codebuild.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "codebuild.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "codebuild.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "codebuild.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "codebuild-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "codebuild.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "codebuild-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "codebuild.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "codebuild.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "codebuild.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "codebuild-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "codebuild.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "codebuild-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -176,32 +202,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codecommit/endpoints.ts b/clients/client-codecommit/endpoints.ts index 826416b14108..7fe26de70d8b 100644 --- a/clients/client-codecommit/endpoints.ts +++ b/clients/client-codecommit/endpoints.ts @@ -40,102 +40,122 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "codecommit.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "codecommit.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "codecommit.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "codecommit.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "codecommit.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "codecommit.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "codecommit.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "codecommit.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "codecommit.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "codecommit.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "codecommit.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips": regionInfo = { hostname: "codecommit-fips.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "me-south-1": regionInfo = { hostname: "codecommit.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "codecommit.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "codecommit.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "codecommit.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "codecommit.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "codecommit.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "codecommit.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "codecommit.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -143,32 +163,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codedeploy/endpoints.ts b/clients/client-codedeploy/endpoints.ts index 9b45cca2112a..3f3f2ef05565 100644 --- a/clients/client-codedeploy/endpoints.ts +++ b/clients/client-codedeploy/endpoints.ts @@ -40,151 +40,180 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "codedeploy.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "codedeploy.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "codedeploy.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "codedeploy.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "codedeploy.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "codedeploy.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "codedeploy.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "codedeploy.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "codedeploy.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "codedeploy.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "codedeploy.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "codedeploy.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "codedeploy.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "codedeploy.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "codedeploy.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "codedeploy.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "codedeploy.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "codedeploy-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "codedeploy.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "codedeploy-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "codedeploy.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-east-1-fips": regionInfo = { hostname: "codedeploy-fips.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "codedeploy.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "codedeploy-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-iso-east-1": regionInfo = { hostname: "codedeploy.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "codedeploy.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "codedeploy-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "codedeploy.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "codedeploy-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -193,32 +222,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codeguru-reviewer/endpoints.ts b/clients/client-codeguru-reviewer/endpoints.ts index 03e2b3eb035b..734cce8e639a 100644 --- a/clients/client-codeguru-reviewer/endpoints.ts +++ b/clients/client-codeguru-reviewer/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codeguruprofiler/endpoints.ts b/clients/client-codeguruprofiler/endpoints.ts index f7e81db02228..b5b582f34e63 100644 --- a/clients/client-codeguruprofiler/endpoints.ts +++ b/clients/client-codeguruprofiler/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codepipeline/endpoints.ts b/clients/client-codepipeline/endpoints.ts index 9cbf546ee826..718572cfec81 100644 --- a/clients/client-codepipeline/endpoints.ts +++ b/clients/client-codepipeline/endpoints.ts @@ -40,81 +40,97 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "codepipeline.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "codepipeline.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "codepipeline.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "codepipeline.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "codepipeline.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "codepipeline.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "codepipeline.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "codepipeline.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "codepipeline.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "codepipeline.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "codepipeline.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "codepipeline.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "codepipeline.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "codepipeline.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "codepipeline.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "codepipeline.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -122,32 +138,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codestar-connections/endpoints.ts b/clients/client-codestar-connections/endpoints.ts index bd4f550fe156..ba0f8db24585 100644 --- a/clients/client-codestar-connections/endpoints.ts +++ b/clients/client-codestar-connections/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codestar-notifications/endpoints.ts b/clients/client-codestar-notifications/endpoints.ts index 0236c4614a7b..073f34694d23 100644 --- a/clients/client-codestar-notifications/endpoints.ts +++ b/clients/client-codestar-notifications/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-codestar/endpoints.ts b/clients/client-codestar/endpoints.ts index ec2a0558b3a3..53368f9b665c 100644 --- a/clients/client-codestar/endpoints.ts +++ b/clients/client-codestar/endpoints.ts @@ -40,61 +40,73 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "codestar.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "codestar.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "codestar.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "codestar.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "codestar.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "codestar.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "codestar.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "codestar.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "codestar.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "codestar.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "codestar.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "codestar.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -102,32 +114,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cognito-identity-provider/endpoints.ts b/clients/client-cognito-identity-provider/endpoints.ts index 704751992b5f..84c597b14fdd 100644 --- a/clients/client-cognito-identity-provider/endpoints.ts +++ b/clients/client-cognito-identity-provider/endpoints.ts @@ -40,61 +40,73 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cognito-idp.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cognito-idp.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cognito-idp.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cognito-idp.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cognito-idp.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cognito-idp.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "cognito-idp.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cognito-idp.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cognito-idp.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cognito-idp.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cognito-idp.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cognito-idp.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -102,32 +114,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cognito-identity/endpoints.ts b/clients/client-cognito-identity/endpoints.ts index 1a542c78f062..08b79aabbc14 100644 --- a/clients/client-cognito-identity/endpoints.ts +++ b/clients/client-cognito-identity/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cognito-identity.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cognito-identity.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cognito-identity.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cognito-identity.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cognito-identity.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "cognito-identity.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "cognito-identity.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "cognito-identity.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cognito-identity.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cognito-identity.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cognito-identity.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cognito-identity.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cognito-identity.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cognito-sync/endpoints.ts b/clients/client-cognito-sync/endpoints.ts index 5606d7cd3854..7a8380547fdf 100644 --- a/clients/client-cognito-sync/endpoints.ts +++ b/clients/client-cognito-sync/endpoints.ts @@ -40,56 +40,67 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "cognito-sync.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "cognito-sync.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "cognito-sync.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "cognito-sync.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "cognito-sync.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "cognito-sync.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "cognito-sync.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "cognito-sync.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "cognito-sync.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "cognito-sync.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "cognito-sync.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -97,32 +108,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-comprehend/endpoints.ts b/clients/client-comprehend/endpoints.ts index 5274ef89ac87..5198b8fadf01 100644 --- a/clients/client-comprehend/endpoints.ts +++ b/clients/client-comprehend/endpoints.ts @@ -40,51 +40,61 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-1": regionInfo = { hostname: "comprehend.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "comprehend.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "comprehend.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "comprehend.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "comprehend.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "comprehend.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "comprehend.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "comprehend.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "comprehend.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-2": regionInfo = { hostname: "comprehend.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -92,32 +102,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-comprehendmedical/endpoints.ts b/clients/client-comprehendmedical/endpoints.ts index bfa4093533d9..657e0d9b67b2 100644 --- a/clients/client-comprehendmedical/endpoints.ts +++ b/clients/client-comprehendmedical/endpoints.ts @@ -40,36 +40,43 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-2": regionInfo = { hostname: "comprehendmedical.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "comprehendmedical.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "comprehendmedical.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "comprehendmedical.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "comprehendmedical.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "comprehendmedical.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "comprehendmedical.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -77,32 +84,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-compute-optimizer/endpoints.ts b/clients/client-compute-optimizer/endpoints.ts index 45c98d979451..2b7a369da829 100644 --- a/clients/client-compute-optimizer/endpoints.ts +++ b/clients/client-compute-optimizer/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-config-service/endpoints.ts b/clients/client-config-service/endpoints.ts index 85b270130acd..90d6ccaea0fb 100644 --- a/clients/client-config-service/endpoints.ts +++ b/clients/client-config-service/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "config.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "config.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "config.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "config.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "config.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "config.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "config.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "config.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "config.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "config.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "config.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "config.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "config.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "config.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "config.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "config.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "config.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "config.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "config.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "config.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "config.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "config.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "config.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "config.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-connect/endpoints.ts b/clients/client-connect/endpoints.ts index 26d6442165e8..5c3a02886cb0 100644 --- a/clients/client-connect/endpoints.ts +++ b/clients/client-connect/endpoints.ts @@ -40,26 +40,31 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "connect.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "connect.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "connect.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "connect.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "connect.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -67,32 +72,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-connectparticipant/endpoints.ts b/clients/client-connectparticipant/endpoints.ts index e73b74f2df2d..2ed4de9d29d6 100644 --- a/clients/client-connectparticipant/endpoints.ts +++ b/clients/client-connectparticipant/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cost-and-usage-report-service/endpoints.ts b/clients/client-cost-and-usage-report-service/endpoints.ts index 9a3decd4e77e..03d2d40e4f82 100644 --- a/clients/client-cost-and-usage-report-service/endpoints.ts +++ b/clients/client-cost-and-usage-report-service/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "cur.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-cost-explorer/endpoints.ts b/clients/client-cost-explorer/endpoints.ts index f72065d75f50..c09bcb3274e7 100644 --- a/clients/client-cost-explorer/endpoints.ts +++ b/clients/client-cost-explorer/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "ce.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -51,21 +52,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-data-pipeline/endpoints.ts b/clients/client-data-pipeline/endpoints.ts index 2a142870dc71..0a80ead2b695 100644 --- a/clients/client-data-pipeline/endpoints.ts +++ b/clients/client-data-pipeline/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "datapipeline.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "datapipeline.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "datapipeline.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "datapipeline.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-iso-east-1": regionInfo = { hostname: "datapipeline.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-2": regionInfo = { hostname: "datapipeline.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-database-migration-service/endpoints.ts b/clients/client-database-migration-service/endpoints.ts index 4876a84a7e1d..51c723c8970f 100644 --- a/clients/client-database-migration-service/endpoints.ts +++ b/clients/client-database-migration-service/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "dms.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "dms.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "dms.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "dms.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "dms.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "dms.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "dms.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "dms.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "dms.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "dms.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "dms.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "dms.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "dms.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "dms.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "dms.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "dms.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "dms.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "dms.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "dms.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "dms.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "dms.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "dms.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "dms.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "dms.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-dataexchange/endpoints.ts b/clients/client-dataexchange/endpoints.ts index 8d7f6a3a7cbc..995cb0afe800 100644 --- a/clients/client-dataexchange/endpoints.ts +++ b/clients/client-dataexchange/endpoints.ts @@ -40,56 +40,67 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "dataexchange.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "dataexchange.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "dataexchange.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "dataexchange.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "dataexchange.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "dataexchange.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "dataexchange.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "dataexchange.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "dataexchange.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "dataexchange.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "dataexchange.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -97,32 +108,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-datasync/endpoints.ts b/clients/client-datasync/endpoints.ts index e3792803c0fc..edcdc93d9bdb 100644 --- a/clients/client-datasync/endpoints.ts +++ b/clients/client-datasync/endpoints.ts @@ -40,131 +40,156 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "datasync.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "datasync.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "datasync.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "datasync.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "datasync.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "datasync.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "datasync.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "datasync.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "datasync.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "datasync.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "datasync.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "datasync.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips-us-east-1": regionInfo = { hostname: "datasync-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "fips-us-east-2": regionInfo = { hostname: "datasync-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "fips-us-gov-west-1": regionInfo = { hostname: "datasync-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "fips-us-west-1": regionInfo = { hostname: "datasync-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "fips-us-west-2": regionInfo = { hostname: "datasync-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; case "me-south-1": regionInfo = { hostname: "datasync.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "datasync.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "datasync.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "datasync.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "datasync.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "datasync.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "datasync.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "datasync.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -172,32 +197,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-dax/endpoints.ts b/clients/client-dax/endpoints.ts index e56769a9a126..522b3ee0427d 100644 --- a/clients/client-dax/endpoints.ts +++ b/clients/client-dax/endpoints.ts @@ -40,71 +40,85 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "dax.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "dax.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "dax.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "dax.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "cn-northwest-1": regionInfo = { hostname: "dax.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "dax.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "dax.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "dax.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "dax.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "dax.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "dax.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "dax.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "dax.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "dax.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -112,32 +126,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-detective/endpoints.ts b/clients/client-detective/endpoints.ts index da6a2be1af04..c44dc2ae3e72 100644 --- a/clients/client-detective/endpoints.ts +++ b/clients/client-detective/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-device-farm/endpoints.ts b/clients/client-device-farm/endpoints.ts index 96c5b8da8a4f..8e1ed84171d2 100644 --- a/clients/client-device-farm/endpoints.ts +++ b/clients/client-device-farm/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-west-2": regionInfo = { hostname: "devicefarm.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-direct-connect/endpoints.ts b/clients/client-direct-connect/endpoints.ts index fa001520d056..418fe974e37c 100644 --- a/clients/client-direct-connect/endpoints.ts +++ b/clients/client-direct-connect/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "directconnect.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "directconnect.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "directconnect.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "directconnect.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "directconnect.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "directconnect.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "directconnect.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "directconnect.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "directconnect.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "directconnect.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "directconnect.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "directconnect.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "directconnect.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "directconnect.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "directconnect.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "directconnect.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "directconnect.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "directconnect.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "directconnect.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "directconnect.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "directconnect.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "directconnect.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "directconnect.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "directconnect.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-directory-service/endpoints.ts b/clients/client-directory-service/endpoints.ts index acdb8adcfc79..2facd06341c9 100644 --- a/clients/client-directory-service/endpoints.ts +++ b/clients/client-directory-service/endpoints.ts @@ -40,106 +40,127 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "ds.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "ds.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "ds.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "ds.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "ds.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "ds.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "ds.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "ds.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "ds.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "ds.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "ds.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "ds.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "ds.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "ds.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "ds.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "ds.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "ds.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "ds.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "ds.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "ds.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "ds.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -147,32 +168,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-dlm/endpoints.ts b/clients/client-dlm/endpoints.ts index a1081e398d52..d7d1e274a5f3 100644 --- a/clients/client-dlm/endpoints.ts +++ b/clients/client-dlm/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-docdb/endpoints.ts b/clients/client-docdb/endpoints.ts index fd001fb9a95d..d46a9ac91805 100644 --- a/clients/client-docdb/endpoints.ts +++ b/clients/client-docdb/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "rds.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "rds.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "rds.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "rds.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "rds.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "rds.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "rds.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "rds.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "rds.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "rds.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "rds.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "rds.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "rds.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "rds.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "rds.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "rds.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "rds.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "rds.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "rds.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "rds.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "rds.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "rds.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "rds.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "rds.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-dynamodb-streams/endpoints.ts b/clients/client-dynamodb-streams/endpoints.ts index 47dd7ec5d199..7548d2e32090 100644 --- a/clients/client-dynamodb-streams/endpoints.ts +++ b/clients/client-dynamodb-streams/endpoints.ts @@ -40,186 +40,217 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "streams.dynamodb.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ap-northeast-2": regionInfo = { hostname: "streams.dynamodb.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ap-south-1": regionInfo = { hostname: "streams.dynamodb.ap-south-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ap-southeast-1": regionInfo = { hostname: "streams.dynamodb.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ap-southeast-2": regionInfo = { hostname: "streams.dynamodb.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ca-central-1": regionInfo = { hostname: "streams.dynamodb.ca-central-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "ca-central-1-fips": regionInfo = { hostname: "dynamodb-fips.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "cn-north-1": regionInfo = { hostname: "streams.dynamodb.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "dynamodb", }; break; case "cn-northwest-1": regionInfo = { hostname: "streams.dynamodb.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "dynamodb", }; break; case "eu-central-1": regionInfo = { hostname: "streams.dynamodb.eu-central-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "eu-north-1": regionInfo = { hostname: "streams.dynamodb.eu-north-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "eu-west-1": regionInfo = { hostname: "streams.dynamodb.eu-west-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "eu-west-2": regionInfo = { hostname: "streams.dynamodb.eu-west-2.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "eu-west-3": regionInfo = { hostname: "streams.dynamodb.eu-west-3.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "local": regionInfo = { hostname: "localhost:8000", + partition: "aws", signingRegion: "us-east-1", }; break; case "me-south-1": regionInfo = { hostname: "streams.dynamodb.me-south-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "sa-east-1": regionInfo = { hostname: "streams.dynamodb.sa-east-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "us-east-1": regionInfo = { hostname: "streams.dynamodb.us-east-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "us-east-1-fips": regionInfo = { hostname: "dynamodb-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "streams.dynamodb.us-east-2.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "us-east-2-fips": regionInfo = { hostname: "dynamodb-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "streams.dynamodb.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingService: "dynamodb", }; break; case "us-gov-east-1-fips": regionInfo = { hostname: "dynamodb.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "streams.dynamodb.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "dynamodb", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "dynamodb.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-iso-east-1": regionInfo = { hostname: "streams.dynamodb.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", signingService: "dynamodb", }; break; case "us-isob-east-1": regionInfo = { hostname: "streams.dynamodb.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", signingService: "dynamodb", }; break; case "us-west-1": regionInfo = { hostname: "streams.dynamodb.us-west-1.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "us-west-1-fips": regionInfo = { hostname: "dynamodb-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "streams.dynamodb.us-west-2.amazonaws.com", + partition: "aws", signingService: "dynamodb", }; break; case "us-west-2-fips": regionInfo = { hostname: "dynamodb-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -228,30 +259,35 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "dynamodb", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", signingService: "dynamodb", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", signingService: "dynamodb", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", signingService: "dynamodb", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "dynamodb", }; } @@ -259,6 +295,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "dynamodb", }; } diff --git a/clients/client-dynamodb/endpoints.ts b/clients/client-dynamodb/endpoints.ts index 6fa655f6b562..2ee87b050670 100644 --- a/clients/client-dynamodb/endpoints.ts +++ b/clients/client-dynamodb/endpoints.ts @@ -40,168 +40,200 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "dynamodb.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "dynamodb.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "dynamodb.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "dynamodb.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "dynamodb.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "dynamodb.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "dynamodb.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "ca-central-1-fips": regionInfo = { hostname: "dynamodb-fips.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "cn-north-1": regionInfo = { hostname: "dynamodb.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "dynamodb.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "dynamodb.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "dynamodb.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "dynamodb.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "dynamodb.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "dynamodb.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "local": regionInfo = { hostname: "localhost:8000", + partition: "aws", signingRegion: "us-east-1", }; break; case "me-south-1": regionInfo = { hostname: "dynamodb.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "dynamodb.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "dynamodb.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "dynamodb-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "dynamodb.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "dynamodb-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "dynamodb.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-east-1-fips": regionInfo = { hostname: "dynamodb.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "dynamodb.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "dynamodb.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-iso-east-1": regionInfo = { hostname: "dynamodb.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "dynamodb.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "dynamodb.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "dynamodb-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "dynamodb.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "dynamodb-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -210,32 +242,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ebs/endpoints.ts b/clients/client-ebs/endpoints.ts index 2adc7ce64aa7..11ac687c852d 100644 --- a/clients/client-ebs/endpoints.ts +++ b/clients/client-ebs/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ec2-instance-connect/endpoints.ts b/clients/client-ec2-instance-connect/endpoints.ts index e9823d59f237..8a2c95bba651 100644 --- a/clients/client-ec2-instance-connect/endpoints.ts +++ b/clients/client-ec2-instance-connect/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ec2/endpoints.ts b/clients/client-ec2/endpoints.ts index 8d3b78730da0..ab1ab771248a 100644 --- a/clients/client-ec2/endpoints.ts +++ b/clients/client-ec2/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "ec2.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "ec2.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "ec2.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "ec2.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "ec2.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "ec2.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "ec2.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "ec2.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "ec2.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "ec2.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "ec2.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "ec2.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "ec2.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "ec2.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "ec2.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "ec2.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "ec2.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "ec2.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "ec2.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "ec2.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "ec2.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "ec2.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "ec2.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "ec2.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ecr/endpoints.ts b/clients/client-ecr/endpoints.ts index 9f4a523ff110..fcfaf26d4c39 100644 --- a/clients/client-ecr/endpoints.ts +++ b/clients/client-ecr/endpoints.ts @@ -40,138 +40,161 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "api.ecr.ap-east-1.amazonaws.com", + partition: "aws", signingRegion: "ap-east-1", }; break; case "ap-northeast-1": regionInfo = { hostname: "api.ecr.ap-northeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-northeast-1", }; break; case "ap-northeast-2": regionInfo = { hostname: "api.ecr.ap-northeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-northeast-2", }; break; case "ap-south-1": regionInfo = { hostname: "api.ecr.ap-south-1.amazonaws.com", + partition: "aws", signingRegion: "ap-south-1", }; break; case "ap-southeast-1": regionInfo = { hostname: "api.ecr.ap-southeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-1", }; break; case "ap-southeast-2": regionInfo = { hostname: "api.ecr.ap-southeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-2", }; break; case "ca-central-1": regionInfo = { hostname: "api.ecr.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "cn-north-1": regionInfo = { hostname: "api.ecr.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-north-1", }; break; case "cn-northwest-1": regionInfo = { hostname: "api.ecr.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-northwest-1", }; break; case "eu-central-1": regionInfo = { hostname: "api.ecr.eu-central-1.amazonaws.com", + partition: "aws", signingRegion: "eu-central-1", }; break; case "eu-north-1": regionInfo = { hostname: "api.ecr.eu-north-1.amazonaws.com", + partition: "aws", signingRegion: "eu-north-1", }; break; case "eu-west-1": regionInfo = { hostname: "api.ecr.eu-west-1.amazonaws.com", + partition: "aws", signingRegion: "eu-west-1", }; break; case "eu-west-2": regionInfo = { hostname: "api.ecr.eu-west-2.amazonaws.com", + partition: "aws", signingRegion: "eu-west-2", }; break; case "eu-west-3": regionInfo = { hostname: "api.ecr.eu-west-3.amazonaws.com", + partition: "aws", signingRegion: "eu-west-3", }; break; case "me-south-1": regionInfo = { hostname: "api.ecr.me-south-1.amazonaws.com", + partition: "aws", signingRegion: "me-south-1", }; break; case "sa-east-1": regionInfo = { hostname: "api.ecr.sa-east-1.amazonaws.com", + partition: "aws", signingRegion: "sa-east-1", }; break; case "us-east-1": regionInfo = { hostname: "api.ecr.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "api.ecr.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "api.ecr.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "api.ecr.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-iso-east-1": regionInfo = { hostname: "api.ecr.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", signingRegion: "us-iso-east-1", }; break; case "us-west-1": regionInfo = { hostname: "api.ecr.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "api.ecr.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -180,32 +203,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ecs/endpoints.ts b/clients/client-ecs/endpoints.ts index d2293c5f3465..58bc5afb6f1f 100644 --- a/clients/client-ecs/endpoints.ts +++ b/clients/client-ecs/endpoints.ts @@ -40,116 +40,139 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "ecs.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "ecs.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "ecs.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "ecs.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "ecs.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "ecs.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "ecs.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "ecs.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "ecs.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "ecs.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "ecs.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "ecs.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "ecs.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "ecs.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "ecs.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "ecs.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "ecs.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "ecs.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "ecs.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "ecs.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "ecs.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "ecs.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "ecs.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -157,32 +180,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-efs/endpoints.ts b/clients/client-efs/endpoints.ts index afda9faf75cc..7e0dc5fce117 100644 --- a/clients/client-efs/endpoints.ts +++ b/clients/client-efs/endpoints.ts @@ -40,96 +40,115 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticfilesystem.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticfilesystem.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticfilesystem.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticfilesystem.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticfilesystem.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticfilesystem.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticfilesystem.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "elasticfilesystem.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticfilesystem.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticfilesystem.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticfilesystem.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticfilesystem.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "elasticfilesystem.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticfilesystem.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticfilesystem.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticfilesystem.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticfilesystem.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "elasticfilesystem.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticfilesystem.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -137,32 +156,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-eks/endpoints.ts b/clients/client-eks/endpoints.ts index 70a55d441e91..445d2374b5e9 100644 --- a/clients/client-eks/endpoints.ts +++ b/clients/client-eks/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elastic-beanstalk/endpoints.ts b/clients/client-elastic-beanstalk/endpoints.ts index c896b1c327d3..bbbc9da3106a 100644 --- a/clients/client-elastic-beanstalk/endpoints.ts +++ b/clients/client-elastic-beanstalk/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticbeanstalk.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticbeanstalk.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticbeanstalk.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticbeanstalk.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticbeanstalk.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticbeanstalk.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticbeanstalk.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "elasticbeanstalk.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "elasticbeanstalk.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "elasticbeanstalk.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticbeanstalk.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticbeanstalk.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticbeanstalk.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticbeanstalk.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "elasticbeanstalk.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticbeanstalk.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticbeanstalk.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticbeanstalk.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "elasticbeanstalk.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticbeanstalk.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "elasticbeanstalk.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticbeanstalk.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elastic-inference/endpoints.ts b/clients/client-elastic-inference/endpoints.ts index 4b55bcc64a78..34186816d127 100644 --- a/clients/client-elastic-inference/endpoints.ts +++ b/clients/client-elastic-inference/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elastic-load-balancing-v2/endpoints.ts b/clients/client-elastic-load-balancing-v2/endpoints.ts index 961f86eb5c22..adc9447f8af7 100644 --- a/clients/client-elastic-load-balancing-v2/endpoints.ts +++ b/clients/client-elastic-load-balancing-v2/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticloadbalancing.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticloadbalancing.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticloadbalancing.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticloadbalancing.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticloadbalancing.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticloadbalancing.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticloadbalancing.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "elasticloadbalancing.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "elasticloadbalancing.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "elasticloadbalancing.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticloadbalancing.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticloadbalancing.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticloadbalancing.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticloadbalancing.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "elasticloadbalancing.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticloadbalancing.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticloadbalancing.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticloadbalancing.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "elasticloadbalancing.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticloadbalancing.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "elasticloadbalancing.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "elasticloadbalancing.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "elasticloadbalancing.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticloadbalancing.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elastic-load-balancing/endpoints.ts b/clients/client-elastic-load-balancing/endpoints.ts index 961f86eb5c22..adc9447f8af7 100644 --- a/clients/client-elastic-load-balancing/endpoints.ts +++ b/clients/client-elastic-load-balancing/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticloadbalancing.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticloadbalancing.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticloadbalancing.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticloadbalancing.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticloadbalancing.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticloadbalancing.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticloadbalancing.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "elasticloadbalancing.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "elasticloadbalancing.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "elasticloadbalancing.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticloadbalancing.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticloadbalancing.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticloadbalancing.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticloadbalancing.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "elasticloadbalancing.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticloadbalancing.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticloadbalancing.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticloadbalancing.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "elasticloadbalancing.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticloadbalancing.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "elasticloadbalancing.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "elasticloadbalancing.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "elasticloadbalancing.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticloadbalancing.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elastic-transcoder/endpoints.ts b/clients/client-elastic-transcoder/endpoints.ts index 7f50f44fd725..be13ecf5931e 100644 --- a/clients/client-elastic-transcoder/endpoints.ts +++ b/clients/client-elastic-transcoder/endpoints.ts @@ -40,41 +40,49 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "elastictranscoder.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elastictranscoder.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elastictranscoder.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elastictranscoder.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elastictranscoder.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elastictranscoder.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "elastictranscoder.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elastictranscoder.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -82,32 +90,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elasticache/endpoints.ts b/clients/client-elasticache/endpoints.ts index 5cd83d747274..b618b4c0ab48 100644 --- a/clients/client-elasticache/endpoints.ts +++ b/clients/client-elasticache/endpoints.ts @@ -40,127 +40,152 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticache.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticache.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticache.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticache.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticache.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticache.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticache.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "elasticache.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "elasticache.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "elasticache.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticache.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticache.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticache.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticache.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips": regionInfo = { hostname: "elasticache-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "me-south-1": regionInfo = { hostname: "elasticache.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticache.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticache.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticache.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "elasticache.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticache.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "elasticache.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "elasticache.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "elasticache.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticache.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -168,32 +193,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-elasticsearch-service/endpoints.ts b/clients/client-elasticsearch-service/endpoints.ts index e27c5e146ff2..aff920195b35 100644 --- a/clients/client-elasticsearch-service/endpoints.ts +++ b/clients/client-elasticsearch-service/endpoints.ts @@ -40,117 +40,140 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "es.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "es.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "es.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "es.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "es.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "es.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "es.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "es.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "es.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "es.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "es.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "es.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "es.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "es.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips": regionInfo = { hostname: "es-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "me-south-1": regionInfo = { hostname: "es.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "es.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "es.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "es.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "es.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "es.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "es.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "es.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -158,32 +181,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-emr/endpoints.ts b/clients/client-emr/endpoints.ts index 55ca4d744c92..de9f3d9dad54 100644 --- a/clients/client-emr/endpoints.ts +++ b/clients/client-emr/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "elasticmapreduce.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "elasticmapreduce.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "elasticmapreduce.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "elasticmapreduce.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "elasticmapreduce.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "elasticmapreduce.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "elasticmapreduce.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "elasticmapreduce.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "elasticmapreduce.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "elasticmapreduce.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "elasticmapreduce.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "elasticmapreduce.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "elasticmapreduce.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "elasticmapreduce.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "elasticmapreduce.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "elasticmapreduce.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "elasticmapreduce.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "elasticmapreduce.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "elasticmapreduce.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "elasticmapreduce.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "elasticmapreduce.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "elasticmapreduce.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "elasticmapreduce.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "elasticmapreduce.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-eventbridge/endpoints.ts b/clients/client-eventbridge/endpoints.ts index 0d7739af2e15..6a663ad4b1ab 100644 --- a/clients/client-eventbridge/endpoints.ts +++ b/clients/client-eventbridge/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "events.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "events.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "events.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "events.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "events.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "events.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "events.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "events.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "events.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "events.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "events.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "events.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "events.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "events.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "events.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "events.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "events.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "events.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "events.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "events.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "events.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "events.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "events.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "events.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-firehose/endpoints.ts b/clients/client-firehose/endpoints.ts index a6c2e18e98f0..e2bcab8762b9 100644 --- a/clients/client-firehose/endpoints.ts +++ b/clients/client-firehose/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "firehose.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "firehose.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "firehose.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "firehose.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "firehose.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "firehose.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "firehose.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "firehose.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "firehose.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "firehose.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "firehose.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "firehose.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "firehose.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "firehose.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "firehose.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "firehose.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "firehose.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "firehose.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "firehose.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "firehose.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "firehose.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "firehose.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-fms/endpoints.ts b/clients/client-fms/endpoints.ts index ef3480cf82a2..861df88a06a9 100644 --- a/clients/client-fms/endpoints.ts +++ b/clients/client-fms/endpoints.ts @@ -40,81 +40,97 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "fms.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "fms.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "fms.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "fms.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "fms.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "fms.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "fms.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "fms.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "fms.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "fms.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "fms.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "fms.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "fms.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "fms.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "fms.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "fms.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -122,32 +138,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-forecast/endpoints.ts b/clients/client-forecast/endpoints.ts index f18f74422ea8..0d36666e2285 100644 --- a/clients/client-forecast/endpoints.ts +++ b/clients/client-forecast/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "forecast.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "forecast.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "forecast.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "forecast.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "forecast.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "forecast.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-forecastquery/endpoints.ts b/clients/client-forecastquery/endpoints.ts index 494ec583d316..07bab673cdb8 100644 --- a/clients/client-forecastquery/endpoints.ts +++ b/clients/client-forecastquery/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "forecastquery.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "forecastquery.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "forecastquery.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "forecastquery.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "forecastquery.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "forecastquery.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-frauddetector/endpoints.ts b/clients/client-frauddetector/endpoints.ts index 9bacdf0f0d49..6bf46b1e2225 100644 --- a/clients/client-frauddetector/endpoints.ts +++ b/clients/client-frauddetector/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-fsx/endpoints.ts b/clients/client-fsx/endpoints.ts index c9839d9d40ad..cbe5a57ffe23 100644 --- a/clients/client-fsx/endpoints.ts +++ b/clients/client-fsx/endpoints.ts @@ -40,56 +40,67 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "fsx.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "fsx.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "fsx.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "fsx.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "fsx.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "fsx.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "fsx.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "fsx.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "fsx.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "fsx.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "fsx.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -97,32 +108,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-gamelift/endpoints.ts b/clients/client-gamelift/endpoints.ts index 6ffcc208eefc..a180a2907c8d 100644 --- a/clients/client-gamelift/endpoints.ts +++ b/clients/client-gamelift/endpoints.ts @@ -40,76 +40,91 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "gamelift.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "gamelift.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "gamelift.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "gamelift.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "gamelift.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "gamelift.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "gamelift.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "gamelift.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "gamelift.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "gamelift.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "gamelift.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "gamelift.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "gamelift.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "gamelift.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "gamelift.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -117,32 +132,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-glacier/endpoints.ts b/clients/client-glacier/endpoints.ts index 836fada2f472..d3da96100cbd 100644 --- a/clients/client-glacier/endpoints.ts +++ b/clients/client-glacier/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "glacier.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "glacier.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "glacier.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "glacier.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "glacier.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "glacier.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "glacier.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "glacier.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "glacier.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "glacier.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "glacier.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "glacier.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "glacier.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "glacier.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "glacier.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "glacier.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "glacier.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "glacier.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "glacier.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "glacier.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "glacier.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "glacier.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "glacier.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "glacier.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-global-accelerator/endpoints.ts b/clients/client-global-accelerator/endpoints.ts index aeb167133fea..686e7fc0a445 100644 --- a/clients/client-global-accelerator/endpoints.ts +++ b/clients/client-global-accelerator/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-glue/endpoints.ts b/clients/client-glue/endpoints.ts index f6cb697bcc03..27f34d5e0a8b 100644 --- a/clients/client-glue/endpoints.ts +++ b/clients/client-glue/endpoints.ts @@ -40,106 +40,127 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "glue.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "glue.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "glue.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "glue.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "glue.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "glue.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "glue.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-northwest-1": regionInfo = { hostname: "glue.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "glue.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "glue.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "glue.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "glue.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "glue.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "glue.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "glue.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "glue.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "glue.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "glue.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "glue.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "glue.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "glue.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -147,32 +168,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-greengrass/endpoints.ts b/clients/client-greengrass/endpoints.ts index 5bf544b909e2..9fef124a39c1 100644 --- a/clients/client-greengrass/endpoints.ts +++ b/clients/client-greengrass/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "greengrass.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "greengrass.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "greengrass.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "greengrass.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "greengrass.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "greengrass.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "greengrass.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "greengrass.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "greengrass.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "greengrass.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "greengrass.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "greengrass.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-2": regionInfo = { hostname: "greengrass.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-groundstation/endpoints.ts b/clients/client-groundstation/endpoints.ts index ba1ebd97a6e1..d72164d891da 100644 --- a/clients/client-groundstation/endpoints.ts +++ b/clients/client-groundstation/endpoints.ts @@ -40,11 +40,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-2": regionInfo = { hostname: "groundstation.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "groundstation.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -52,32 +54,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-guardduty/endpoints.ts b/clients/client-guardduty/endpoints.ts index e87c9fd39b33..5f342c5fee37 100644 --- a/clients/client-guardduty/endpoints.ts +++ b/clients/client-guardduty/endpoints.ts @@ -40,119 +40,142 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "guardduty.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "guardduty.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "guardduty.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "guardduty.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "guardduty.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "guardduty.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "guardduty.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "guardduty.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "guardduty.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "guardduty.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "guardduty.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "guardduty.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "guardduty.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "guardduty.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "guardduty.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "guardduty-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "guardduty.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "guardduty-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-west-1": regionInfo = { hostname: "guardduty.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "guardduty.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "guardduty-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "guardduty.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "guardduty-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -161,32 +184,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-health/endpoints.ts b/clients/client-health/endpoints.ts index 8a711acf73e9..98bcfd9df2c7 100644 --- a/clients/client-health/endpoints.ts +++ b/clients/client-health/endpoints.ts @@ -40,21 +40,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "health.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "health.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "health.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "health.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; // Next, try to match partition endpoints. @@ -62,32 +66,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iam/endpoints.ts b/clients/client-iam/endpoints.ts index d2bb40cf91ab..55d27a0c95a9 100644 --- a/clients/client-iam/endpoints.ts +++ b/clients/client-iam/endpoints.ts @@ -40,30 +40,35 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-cn-global": regionInfo = { hostname: "iam.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-north-1", }; break; case "aws-global": regionInfo = { hostname: "iam.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "aws-iso-b-global": regionInfo = { hostname: "iam.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", signingRegion: "us-isob-east-1", }; break; case "aws-iso-global": regionInfo = { hostname: "iam.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", signingRegion: "us-iso-east-1", }; break; case "aws-us-gov-global": regionInfo = { hostname: "iam.us-gov.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; diff --git a/clients/client-imagebuilder/endpoints.ts b/clients/client-imagebuilder/endpoints.ts index e850cace280b..ba3a973452fa 100644 --- a/clients/client-imagebuilder/endpoints.ts +++ b/clients/client-imagebuilder/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-inspector/endpoints.ts b/clients/client-inspector/endpoints.ts index 59e539ac56a3..c137179b0c83 100644 --- a/clients/client-inspector/endpoints.ts +++ b/clients/client-inspector/endpoints.ts @@ -40,71 +40,85 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "inspector.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "inspector.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "inspector.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "inspector.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "inspector.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "inspector.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "inspector.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "inspector.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "inspector.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "inspector.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "inspector.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "inspector.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "inspector.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "inspector.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -112,32 +126,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot-1click-devices-service/endpoints.ts b/clients/client-iot-1click-devices-service/endpoints.ts index a4af5b473fbd..084536e714ff 100644 --- a/clients/client-iot-1click-devices-service/endpoints.ts +++ b/clients/client-iot-1click-devices-service/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot-1click-projects/endpoints.ts b/clients/client-iot-1click-projects/endpoints.ts index 95ee5dba60f6..a35630d1810d 100644 --- a/clients/client-iot-1click-projects/endpoints.ts +++ b/clients/client-iot-1click-projects/endpoints.ts @@ -40,36 +40,43 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "projects.iot1click.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "projects.iot1click.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "projects.iot1click.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "projects.iot1click.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "projects.iot1click.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "projects.iot1click.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "projects.iot1click.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -77,32 +84,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot-data-plane/endpoints.ts b/clients/client-iot-data-plane/endpoints.ts index 55bf5ed8d9f7..7f3a97dea117 100644 --- a/clients/client-iot-data-plane/endpoints.ts +++ b/clients/client-iot-data-plane/endpoints.ts @@ -40,126 +40,147 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "data.iot.ap-east-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ap-northeast-1": regionInfo = { hostname: "data.iot.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ap-northeast-2": regionInfo = { hostname: "data.iot.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ap-south-1": regionInfo = { hostname: "data.iot.ap-south-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ap-southeast-1": regionInfo = { hostname: "data.iot.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ap-southeast-2": regionInfo = { hostname: "data.iot.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "ca-central-1": regionInfo = { hostname: "data.iot.ca-central-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "cn-north-1": regionInfo = { hostname: "data.iot.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "iotdata", }; break; case "cn-northwest-1": regionInfo = { hostname: "data.iot.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "iotdata", }; break; case "eu-central-1": regionInfo = { hostname: "data.iot.eu-central-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "eu-north-1": regionInfo = { hostname: "data.iot.eu-north-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "eu-west-1": regionInfo = { hostname: "data.iot.eu-west-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "eu-west-2": regionInfo = { hostname: "data.iot.eu-west-2.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "eu-west-3": regionInfo = { hostname: "data.iot.eu-west-3.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "me-south-1": regionInfo = { hostname: "data.iot.me-south-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "sa-east-1": regionInfo = { hostname: "data.iot.sa-east-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "us-east-1": regionInfo = { hostname: "data.iot.us-east-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "us-east-2": regionInfo = { hostname: "data.iot.us-east-2.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "us-gov-west-1": regionInfo = { hostname: "data.iot.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "iotdata", }; break; case "us-west-1": regionInfo = { hostname: "data.iot.us-west-1.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; case "us-west-2": regionInfo = { hostname: "data.iot.us-west-2.amazonaws.com", + partition: "aws", signingService: "iotdata", }; break; @@ -168,28 +189,33 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "iotdata", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", signingService: "iotdata", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "iotdata", }; } @@ -197,6 +223,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "iotdata", }; } diff --git a/clients/client-iot-events-data/endpoints.ts b/clients/client-iot-events-data/endpoints.ts index ecaaf2bb4e93..4285a9b809fa 100644 --- a/clients/client-iot-events-data/endpoints.ts +++ b/clients/client-iot-events-data/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot-events/endpoints.ts b/clients/client-iot-events/endpoints.ts index 63bb0db6143f..c95471d70c18 100644 --- a/clients/client-iot-events/endpoints.ts +++ b/clients/client-iot-events/endpoints.ts @@ -40,51 +40,61 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "iotevents.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "iotevents.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "iotevents.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "iotevents.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "iotevents.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "iotevents.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "iotevents.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "iotevents.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "iotevents.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "iotevents.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -92,32 +102,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot-jobs-data-plane/endpoints.ts b/clients/client-iot-jobs-data-plane/endpoints.ts index 37e0bcaec44a..910168241bc4 100644 --- a/clients/client-iot-jobs-data-plane/endpoints.ts +++ b/clients/client-iot-jobs-data-plane/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iot/endpoints.ts b/clients/client-iot/endpoints.ts index 791332a6d81b..251c479e01dd 100644 --- a/clients/client-iot/endpoints.ts +++ b/clients/client-iot/endpoints.ts @@ -40,126 +40,147 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "iot.ap-east-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ap-northeast-1": regionInfo = { hostname: "iot.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ap-northeast-2": regionInfo = { hostname: "iot.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ap-south-1": regionInfo = { hostname: "iot.ap-south-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ap-southeast-1": regionInfo = { hostname: "iot.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ap-southeast-2": regionInfo = { hostname: "iot.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "ca-central-1": regionInfo = { hostname: "iot.ca-central-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "cn-north-1": regionInfo = { hostname: "iot.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "execute-api", }; break; case "cn-northwest-1": regionInfo = { hostname: "iot.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingService: "execute-api", }; break; case "eu-central-1": regionInfo = { hostname: "iot.eu-central-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "eu-north-1": regionInfo = { hostname: "iot.eu-north-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "eu-west-1": regionInfo = { hostname: "iot.eu-west-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "eu-west-2": regionInfo = { hostname: "iot.eu-west-2.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "eu-west-3": regionInfo = { hostname: "iot.eu-west-3.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "me-south-1": regionInfo = { hostname: "iot.me-south-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "sa-east-1": regionInfo = { hostname: "iot.sa-east-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "us-east-1": regionInfo = { hostname: "iot.us-east-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "us-east-2": regionInfo = { hostname: "iot.us-east-2.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "us-gov-west-1": regionInfo = { hostname: "iot.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "execute-api", }; break; case "us-west-1": regionInfo = { hostname: "iot.us-west-1.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; case "us-west-2": regionInfo = { hostname: "iot.us-west-2.amazonaws.com", + partition: "aws", signingService: "execute-api", }; break; @@ -168,28 +189,33 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "execute-api", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", signingService: "execute-api", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "execute-api", }; } @@ -197,6 +223,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "execute-api", }; } diff --git a/clients/client-iotanalytics/endpoints.ts b/clients/client-iotanalytics/endpoints.ts index d28419ad8792..ce2ac9458a10 100644 --- a/clients/client-iotanalytics/endpoints.ts +++ b/clients/client-iotanalytics/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "iotanalytics.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "iotanalytics.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "iotanalytics.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "iotanalytics.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "iotanalytics.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "iotanalytics.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iotsecuretunneling/endpoints.ts b/clients/client-iotsecuretunneling/endpoints.ts index af3647ff2ca2..41dfd50f9a1f 100644 --- a/clients/client-iotsecuretunneling/endpoints.ts +++ b/clients/client-iotsecuretunneling/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-iotthingsgraph/endpoints.ts b/clients/client-iotthingsgraph/endpoints.ts index a939dc50e28e..1f39304b5ae8 100644 --- a/clients/client-iotthingsgraph/endpoints.ts +++ b/clients/client-iotthingsgraph/endpoints.ts @@ -40,36 +40,42 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "iotthingsgraph.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; case "ap-northeast-2": regionInfo = { hostname: "iotthingsgraph.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; case "ap-southeast-2": regionInfo = { hostname: "iotthingsgraph.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; case "eu-west-1": regionInfo = { hostname: "iotthingsgraph.eu-west-1.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; case "us-east-1": regionInfo = { hostname: "iotthingsgraph.us-east-1.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; case "us-west-2": regionInfo = { hostname: "iotthingsgraph.us-west-2.amazonaws.com", + partition: "aws", signingService: "iotthingsgraph", }; break; @@ -78,33 +84,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "iotthingsgraph", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "iotthingsgraph", }; } diff --git a/clients/client-kafka/endpoints.ts b/clients/client-kafka/endpoints.ts index edfbac80bf65..611fa89b2b80 100644 --- a/clients/client-kafka/endpoints.ts +++ b/clients/client-kafka/endpoints.ts @@ -40,86 +40,103 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "kafka.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "kafka.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kafka.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kafka.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kafka.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kafka.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "kafka.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kafka.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kafka.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kafka.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kafka.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kafka.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "kafka.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kafka.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kafka.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "kafka.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kafka.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -127,32 +144,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kendra/endpoints.ts b/clients/client-kendra/endpoints.ts index 0a73cbe6e0a6..06befdeb146a 100644 --- a/clients/client-kendra/endpoints.ts +++ b/clients/client-kendra/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-analytics-v2/endpoints.ts b/clients/client-kinesis-analytics-v2/endpoints.ts index 5a9e5888b1e4..6ed4b16fa040 100644 --- a/clients/client-kinesis-analytics-v2/endpoints.ts +++ b/clients/client-kinesis-analytics-v2/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisanalytics.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kinesisanalytics.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kinesisanalytics.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kinesisanalytics.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisanalytics.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisanalytics.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kinesisanalytics.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisanalytics.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kinesisanalytics.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kinesisanalytics.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisanalytics.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kinesisanalytics.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisanalytics.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-analytics/endpoints.ts b/clients/client-kinesis-analytics/endpoints.ts index 5a9e5888b1e4..6ed4b16fa040 100644 --- a/clients/client-kinesis-analytics/endpoints.ts +++ b/clients/client-kinesis-analytics/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisanalytics.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kinesisanalytics.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kinesisanalytics.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kinesisanalytics.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisanalytics.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisanalytics.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kinesisanalytics.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisanalytics.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kinesisanalytics.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kinesisanalytics.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisanalytics.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kinesisanalytics.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisanalytics.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-video-archived-media/endpoints.ts b/clients/client-kinesis-video-archived-media/endpoints.ts index d49d7c335fed..544be57cab80 100644 --- a/clients/client-kinesis-video-archived-media/endpoints.ts +++ b/clients/client-kinesis-video-archived-media/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisvideo.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisvideo.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisvideo.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisvideo.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisvideo.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisvideo.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-video-media/endpoints.ts b/clients/client-kinesis-video-media/endpoints.ts index d49d7c335fed..544be57cab80 100644 --- a/clients/client-kinesis-video-media/endpoints.ts +++ b/clients/client-kinesis-video-media/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisvideo.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisvideo.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisvideo.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisvideo.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisvideo.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisvideo.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-video-signaling/endpoints.ts b/clients/client-kinesis-video-signaling/endpoints.ts index d49d7c335fed..544be57cab80 100644 --- a/clients/client-kinesis-video-signaling/endpoints.ts +++ b/clients/client-kinesis-video-signaling/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisvideo.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisvideo.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisvideo.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisvideo.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisvideo.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisvideo.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis-video/endpoints.ts b/clients/client-kinesis-video/endpoints.ts index d49d7c335fed..544be57cab80 100644 --- a/clients/client-kinesis-video/endpoints.ts +++ b/clients/client-kinesis-video/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "kinesisvideo.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesisvideo.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "kinesisvideo.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesisvideo.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesisvideo.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesisvideo.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kinesis/endpoints.ts b/clients/client-kinesis/endpoints.ts index cc6219a10535..f87c1e1c801e 100644 --- a/clients/client-kinesis/endpoints.ts +++ b/clients/client-kinesis/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "kinesis.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "kinesis.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kinesis.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kinesis.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kinesis.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kinesis.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "kinesis.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "kinesis.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "kinesis.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "kinesis.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kinesis.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kinesis.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kinesis.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kinesis.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "kinesis.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "kinesis.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kinesis.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kinesis.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "kinesis.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "kinesis.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "kinesis.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "kinesis.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "kinesis.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kinesis.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-kms/endpoints.ts b/clients/client-kms/endpoints.ts index dbe86ee87122..06f51a8a9aff 100644 --- a/clients/client-kms/endpoints.ts +++ b/clients/client-kms/endpoints.ts @@ -40,127 +40,152 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ProdFips": regionInfo = { hostname: "kms-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "ap-east-1": regionInfo = { hostname: "kms.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "kms.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "kms.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "kms.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "kms.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "kms.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "kms.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "kms.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "kms.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "kms.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "kms.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "kms.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "kms.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "kms.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "kms.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "kms.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "kms.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "kms.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "kms.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "kms.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "kms.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "kms.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "kms.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "kms.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -168,32 +193,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-lakeformation/endpoints.ts b/clients/client-lakeformation/endpoints.ts index 7ae74709a397..dc505f264d82 100644 --- a/clients/client-lakeformation/endpoints.ts +++ b/clients/client-lakeformation/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "lakeformation.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "lakeformation.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "lakeformation.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "lakeformation.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "lakeformation.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "lakeformation.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "lakeformation.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "lakeformation.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "lakeformation.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "lakeformation.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "lakeformation.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "lakeformation.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "lakeformation.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-lambda/endpoints.ts b/clients/client-lambda/endpoints.ts index f1aa7651806f..19b61c3b700e 100644 --- a/clients/client-lambda/endpoints.ts +++ b/clients/client-lambda/endpoints.ts @@ -40,116 +40,139 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "lambda.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "lambda.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "lambda.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "lambda.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "lambda.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "lambda.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "lambda.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "lambda.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "lambda.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "lambda.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "lambda.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "lambda.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "lambda.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "lambda.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "lambda.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "lambda.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "lambda.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "lambda.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "lambda.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "lambda.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "lambda.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "lambda.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "lambda.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -157,32 +180,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-lex-model-building-service/endpoints.ts b/clients/client-lex-model-building-service/endpoints.ts index 8e04ab7ece65..a724340f6b64 100644 --- a/clients/client-lex-model-building-service/endpoints.ts +++ b/clients/client-lex-model-building-service/endpoints.ts @@ -40,18 +40,21 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-west-1": regionInfo = { hostname: "models.lex.eu-west-1.amazonaws.com", + partition: "aws", signingService: "lex", }; break; case "us-east-1": regionInfo = { hostname: "models.lex.us-east-1.amazonaws.com", + partition: "aws", signingService: "lex", }; break; case "us-west-2": regionInfo = { hostname: "models.lex.us-west-2.amazonaws.com", + partition: "aws", signingService: "lex", }; break; @@ -60,33 +63,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "lex", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "lex", }; } diff --git a/clients/client-lex-runtime-service/endpoints.ts b/clients/client-lex-runtime-service/endpoints.ts index b897335047b6..716c1de806f5 100644 --- a/clients/client-lex-runtime-service/endpoints.ts +++ b/clients/client-lex-runtime-service/endpoints.ts @@ -40,18 +40,21 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-west-1": regionInfo = { hostname: "runtime.lex.eu-west-1.amazonaws.com", + partition: "aws", signingService: "lex", }; break; case "us-east-1": regionInfo = { hostname: "runtime.lex.us-east-1.amazonaws.com", + partition: "aws", signingService: "lex", }; break; case "us-west-2": regionInfo = { hostname: "runtime.lex.us-west-2.amazonaws.com", + partition: "aws", signingService: "lex", }; break; @@ -60,33 +63,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "lex", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "lex", }; } diff --git a/clients/client-license-manager/endpoints.ts b/clients/client-license-manager/endpoints.ts index c8ddeaa8b506..39158850b9bd 100644 --- a/clients/client-license-manager/endpoints.ts +++ b/clients/client-license-manager/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "license-manager.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "license-manager.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "license-manager.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "license-manager.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "license-manager.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "license-manager.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "license-manager.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "license-manager.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "license-manager.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "license-manager.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "license-manager.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "license-manager.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "license-manager.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "license-manager.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "license-manager.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "license-manager.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "license-manager.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "license-manager.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "license-manager.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "license-manager.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "license-manager.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "license-manager.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-lightsail/endpoints.ts b/clients/client-lightsail/endpoints.ts index a870ffa2cb46..51c8c14a67e3 100644 --- a/clients/client-lightsail/endpoints.ts +++ b/clients/client-lightsail/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "lightsail.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "lightsail.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "lightsail.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "lightsail.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "lightsail.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "lightsail.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "lightsail.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "lightsail.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "lightsail.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "lightsail.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "lightsail.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "lightsail.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "lightsail.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-machine-learning/endpoints.ts b/clients/client-machine-learning/endpoints.ts index b4daedc7636f..9e037eb14ad9 100644 --- a/clients/client-machine-learning/endpoints.ts +++ b/clients/client-machine-learning/endpoints.ts @@ -40,11 +40,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-west-1": regionInfo = { hostname: "machinelearning.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "machinelearning.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -52,32 +54,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-macie/endpoints.ts b/clients/client-macie/endpoints.ts index 723410007ff5..0d16ee9e6f64 100644 --- a/clients/client-macie/endpoints.ts +++ b/clients/client-macie/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-managedblockchain/endpoints.ts b/clients/client-managedblockchain/endpoints.ts index 2154cdda0e7a..ea110ed3b498 100644 --- a/clients/client-managedblockchain/endpoints.ts +++ b/clients/client-managedblockchain/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-marketplace-catalog/endpoints.ts b/clients/client-marketplace-catalog/endpoints.ts index 6f69f7e38ceb..eaf2c7c94f20 100644 --- a/clients/client-marketplace-catalog/endpoints.ts +++ b/clients/client-marketplace-catalog/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-marketplace-commerce-analytics/endpoints.ts b/clients/client-marketplace-commerce-analytics/endpoints.ts index e13da28d37b6..4c070f11e0e8 100644 --- a/clients/client-marketplace-commerce-analytics/endpoints.ts +++ b/clients/client-marketplace-commerce-analytics/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "marketplacecommerceanalytics.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-marketplace-entitlement-service/endpoints.ts b/clients/client-marketplace-entitlement-service/endpoints.ts index d639c5de6a68..af5368ece8da 100644 --- a/clients/client-marketplace-entitlement-service/endpoints.ts +++ b/clients/client-marketplace-entitlement-service/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "entitlement.marketplace.us-east-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; @@ -48,33 +49,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "aws-marketplace", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "aws-marketplace", }; } diff --git a/clients/client-marketplace-metering/endpoints.ts b/clients/client-marketplace-metering/endpoints.ts index 3b90303d6245..ee712c74b5cb 100644 --- a/clients/client-marketplace-metering/endpoints.ts +++ b/clients/client-marketplace-metering/endpoints.ts @@ -40,120 +40,140 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "metering.marketplace.ap-east-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ap-northeast-1": regionInfo = { hostname: "metering.marketplace.ap-northeast-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ap-northeast-2": regionInfo = { hostname: "metering.marketplace.ap-northeast-2.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ap-south-1": regionInfo = { hostname: "metering.marketplace.ap-south-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ap-southeast-1": regionInfo = { hostname: "metering.marketplace.ap-southeast-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ap-southeast-2": regionInfo = { hostname: "metering.marketplace.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "ca-central-1": regionInfo = { hostname: "metering.marketplace.ca-central-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "eu-central-1": regionInfo = { hostname: "metering.marketplace.eu-central-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "eu-north-1": regionInfo = { hostname: "metering.marketplace.eu-north-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "eu-west-1": regionInfo = { hostname: "metering.marketplace.eu-west-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "eu-west-2": regionInfo = { hostname: "metering.marketplace.eu-west-2.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "eu-west-3": regionInfo = { hostname: "metering.marketplace.eu-west-3.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "me-south-1": regionInfo = { hostname: "metering.marketplace.me-south-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "sa-east-1": regionInfo = { hostname: "metering.marketplace.sa-east-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "us-east-1": regionInfo = { hostname: "metering.marketplace.us-east-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "us-east-2": regionInfo = { hostname: "metering.marketplace.us-east-2.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "us-gov-east-1": regionInfo = { hostname: "metering.marketplace.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingService: "aws-marketplace", }; break; case "us-gov-west-1": regionInfo = { hostname: "metering.marketplace.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingService: "aws-marketplace", }; break; case "us-west-1": regionInfo = { hostname: "metering.marketplace.us-west-1.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; case "us-west-2": regionInfo = { hostname: "metering.marketplace.us-west-2.amazonaws.com", + partition: "aws", signingService: "aws-marketplace", }; break; @@ -162,27 +182,32 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "aws-marketplace", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", signingService: "aws-marketplace", }; } @@ -190,6 +215,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "aws-marketplace", }; } diff --git a/clients/client-mediaconnect/endpoints.ts b/clients/client-mediaconnect/endpoints.ts index 7f1114b7eeda..781891da3bfe 100644 --- a/clients/client-mediaconnect/endpoints.ts +++ b/clients/client-mediaconnect/endpoints.ts @@ -40,76 +40,91 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "mediaconnect.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "mediaconnect.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "mediaconnect.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "mediaconnect.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "mediaconnect.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "mediaconnect.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "mediaconnect.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "mediaconnect.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "mediaconnect.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "mediaconnect.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "mediaconnect.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "mediaconnect.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "mediaconnect.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "mediaconnect.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mediaconnect.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -117,32 +132,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediaconvert/endpoints.ts b/clients/client-mediaconvert/endpoints.ts index 9d5274446ed9..8111500fa174 100644 --- a/clients/client-mediaconvert/endpoints.ts +++ b/clients/client-mediaconvert/endpoints.ts @@ -40,87 +40,104 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "mediaconvert.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "mediaconvert.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "mediaconvert.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "mediaconvert.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "mediaconvert.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "mediaconvert.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-northwest-1": regionInfo = { hostname: "subscribe.mediaconvert.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-northwest-1", }; break; case "eu-central-1": regionInfo = { hostname: "mediaconvert.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "mediaconvert.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "mediaconvert.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "mediaconvert.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "mediaconvert.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "mediaconvert.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "mediaconvert.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "mediaconvert.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "mediaconvert.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mediaconvert.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -128,32 +145,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-medialive/endpoints.ts b/clients/client-medialive/endpoints.ts index 14d04cd3cfe9..8876c8665426 100644 --- a/clients/client-medialive/endpoints.ts +++ b/clients/client-medialive/endpoints.ts @@ -40,71 +40,85 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "medialive.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "medialive.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "medialive.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "medialive.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "medialive.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "medialive.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "medialive.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "medialive.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "medialive.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "medialive.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "medialive.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "medialive.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "medialive.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "medialive.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -112,32 +126,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediapackage-vod/endpoints.ts b/clients/client-mediapackage-vod/endpoints.ts index 2156ce57fe86..7a9f7094a374 100644 --- a/clients/client-mediapackage-vod/endpoints.ts +++ b/clients/client-mediapackage-vod/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediapackage/endpoints.ts b/clients/client-mediapackage/endpoints.ts index 5d705965c6dd..a2ee7793d0c7 100644 --- a/clients/client-mediapackage/endpoints.ts +++ b/clients/client-mediapackage/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "mediapackage.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "mediapackage.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "mediapackage.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "mediapackage.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "mediapackage.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "mediapackage.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "mediapackage.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "mediapackage.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "mediapackage.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "mediapackage.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "mediapackage.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "mediapackage.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mediapackage.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediastore-data/endpoints.ts b/clients/client-mediastore-data/endpoints.ts index 1c2c789121aa..29d7b00c624f 100644 --- a/clients/client-mediastore-data/endpoints.ts +++ b/clients/client-mediastore-data/endpoints.ts @@ -40,41 +40,49 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "data.mediastore.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "data.mediastore.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "data.mediastore.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "data.mediastore.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "data.mediastore.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "data.mediastore.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "data.mediastore.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "data.mediastore.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -82,32 +90,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediastore/endpoints.ts b/clients/client-mediastore/endpoints.ts index c3cb1d4823d3..4edb33a523a1 100644 --- a/clients/client-mediastore/endpoints.ts +++ b/clients/client-mediastore/endpoints.ts @@ -40,41 +40,49 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "mediastore.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "mediastore.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "mediastore.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "mediastore.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "mediastore.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "mediastore.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "mediastore.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mediastore.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -82,32 +90,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mediatailor/endpoints.ts b/clients/client-mediatailor/endpoints.ts index 9a7f7f48dc57..68ae2484ac35 100644 --- a/clients/client-mediatailor/endpoints.ts +++ b/clients/client-mediatailor/endpoints.ts @@ -40,36 +40,43 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "api.mediatailor.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "api.mediatailor.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "api.mediatailor.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "api.mediatailor.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "api.mediatailor.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "api.mediatailor.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "api.mediatailor.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -77,32 +84,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-migration-hub/endpoints.ts b/clients/client-migration-hub/endpoints.ts index 39df168bf8b4..d6322fe23053 100644 --- a/clients/client-migration-hub/endpoints.ts +++ b/clients/client-migration-hub/endpoints.ts @@ -40,11 +40,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-central-1": regionInfo = { hostname: "mgh.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mgh.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -52,32 +54,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-migrationhub-config/endpoints.ts b/clients/client-migrationhub-config/endpoints.ts index dd94bda97c34..47ab21e0ad16 100644 --- a/clients/client-migrationhub-config/endpoints.ts +++ b/clients/client-migrationhub-config/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mobile/endpoints.ts b/clients/client-mobile/endpoints.ts index 2ff007224bc8..d05990bf0d0c 100644 --- a/clients/client-mobile/endpoints.ts +++ b/clients/client-mobile/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mq/endpoints.ts b/clients/client-mq/endpoints.ts index 13a1be5ca131..705ac572b9be 100644 --- a/clients/client-mq/endpoints.ts +++ b/clients/client-mq/endpoints.ts @@ -40,95 +40,113 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "mq.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "mq.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "mq.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "mq.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "mq.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "mq.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "mq.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "mq.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "mq.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "mq.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips-us-east-1": regionInfo = { hostname: "mq-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "fips-us-east-2": regionInfo = { hostname: "mq-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "fips-us-west-1": regionInfo = { hostname: "mq-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "fips-us-west-2": regionInfo = { hostname: "mq-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; case "us-east-1": regionInfo = { hostname: "mq.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "mq.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "mq.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "mq.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -136,32 +154,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-mturk/endpoints.ts b/clients/client-mturk/endpoints.ts index 9a2f2ccad0d9..97c44bcc748c 100644 --- a/clients/client-mturk/endpoints.ts +++ b/clients/client-mturk/endpoints.ts @@ -40,11 +40,13 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "sandbox": regionInfo = { hostname: "mturk-requester-sandbox.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "mturk-requester.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -52,32 +54,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-neptune/endpoints.ts b/clients/client-neptune/endpoints.ts index fd001fb9a95d..d46a9ac91805 100644 --- a/clients/client-neptune/endpoints.ts +++ b/clients/client-neptune/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "rds.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "rds.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "rds.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "rds.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "rds.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "rds.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "rds.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "rds.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "rds.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "rds.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "rds.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "rds.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "rds.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "rds.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "rds.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "rds.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "rds.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "rds.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "rds.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "rds.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "rds.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "rds.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "rds.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "rds.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-networkmanager/endpoints.ts b/clients/client-networkmanager/endpoints.ts index be4247240aaf..6033d4276242 100644 --- a/clients/client-networkmanager/endpoints.ts +++ b/clients/client-networkmanager/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-opsworks/endpoints.ts b/clients/client-opsworks/endpoints.ts index 0404c00525e2..308e7a50d1cb 100644 --- a/clients/client-opsworks/endpoints.ts +++ b/clients/client-opsworks/endpoints.ts @@ -40,76 +40,91 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "opsworks.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "opsworks.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "opsworks.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "opsworks.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "opsworks.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "opsworks.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "opsworks.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "opsworks.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "opsworks.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "opsworks.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "opsworks.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "opsworks.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "opsworks.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "opsworks.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "opsworks.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -117,32 +132,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-opsworkscm/endpoints.ts b/clients/client-opsworkscm/endpoints.ts index 85d0d0e5cba4..78c191f94a8d 100644 --- a/clients/client-opsworkscm/endpoints.ts +++ b/clients/client-opsworkscm/endpoints.ts @@ -40,46 +40,55 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "opsworks-cm.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "opsworks-cm.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "opsworks-cm.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "opsworks-cm.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "opsworks-cm.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "opsworks-cm.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "opsworks-cm.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "opsworks-cm.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "opsworks-cm.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -87,32 +96,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-organizations/endpoints.ts b/clients/client-organizations/endpoints.ts index 4a00d7241043..877fd11a9bc2 100644 --- a/clients/client-organizations/endpoints.ts +++ b/clients/client-organizations/endpoints.ts @@ -40,12 +40,14 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "organizations.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "aws-us-gov-global": regionInfo = { hostname: "organizations.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; @@ -57,16 +59,19 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { diff --git a/clients/client-outposts/endpoints.ts b/clients/client-outposts/endpoints.ts index b23f312c549e..c318341eb737 100644 --- a/clients/client-outposts/endpoints.ts +++ b/clients/client-outposts/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-personalize-events/endpoints.ts b/clients/client-personalize-events/endpoints.ts index b659dddf7582..28722be555ca 100644 --- a/clients/client-personalize-events/endpoints.ts +++ b/clients/client-personalize-events/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-personalize-runtime/endpoints.ts b/clients/client-personalize-runtime/endpoints.ts index 95b82c73b6be..583bb7f64740 100644 --- a/clients/client-personalize-runtime/endpoints.ts +++ b/clients/client-personalize-runtime/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-personalize/endpoints.ts b/clients/client-personalize/endpoints.ts index 7163ecc8c33d..858243136998 100644 --- a/clients/client-personalize/endpoints.ts +++ b/clients/client-personalize/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-pi/endpoints.ts b/clients/client-pi/endpoints.ts index 338cc13c8340..86e29cdc6cc6 100644 --- a/clients/client-pi/endpoints.ts +++ b/clients/client-pi/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-pinpoint-email/endpoints.ts b/clients/client-pinpoint-email/endpoints.ts index 56dcb46a5c89..fa01f52b2a57 100644 --- a/clients/client-pinpoint-email/endpoints.ts +++ b/clients/client-pinpoint-email/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-south-1": regionInfo = { hostname: "email.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "email.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "email.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "email.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "email.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "email.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-pinpoint-sms-voice/endpoints.ts b/clients/client-pinpoint-sms-voice/endpoints.ts index 5ad6ba107621..054020ef9eb7 100644 --- a/clients/client-pinpoint-sms-voice/endpoints.ts +++ b/clients/client-pinpoint-sms-voice/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-pinpoint/endpoints.ts b/clients/client-pinpoint/endpoints.ts index 27496a6febf6..6e1be3aebc5b 100644 --- a/clients/client-pinpoint/endpoints.ts +++ b/clients/client-pinpoint/endpoints.ts @@ -40,36 +40,42 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-south-1": regionInfo = { hostname: "pinpoint.ap-south-1.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; case "ap-southeast-2": regionInfo = { hostname: "pinpoint.ap-southeast-2.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; case "eu-central-1": regionInfo = { hostname: "pinpoint.eu-central-1.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; case "eu-west-1": regionInfo = { hostname: "pinpoint.eu-west-1.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; case "us-east-1": regionInfo = { hostname: "pinpoint.us-east-1.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; case "us-west-2": regionInfo = { hostname: "pinpoint.us-west-2.amazonaws.com", + partition: "aws", signingService: "mobiletargeting", }; break; @@ -78,33 +84,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "mobiletargeting", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "mobiletargeting", }; } diff --git a/clients/client-polly/endpoints.ts b/clients/client-polly/endpoints.ts index 2554a938e581..55718be8e6ce 100644 --- a/clients/client-polly/endpoints.ts +++ b/clients/client-polly/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "polly.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "polly.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "polly.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "polly.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "polly.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "polly.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-northwest-1": regionInfo = { hostname: "polly.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "polly.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "polly.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "polly.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "polly.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "polly.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "polly.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "polly.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "polly.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "polly.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "polly.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "polly.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-pricing/endpoints.ts b/clients/client-pricing/endpoints.ts index 0ec6ff784701..0d7240387d76 100644 --- a/clients/client-pricing/endpoints.ts +++ b/clients/client-pricing/endpoints.ts @@ -40,12 +40,14 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-south-1": regionInfo = { hostname: "api.pricing.ap-south-1.amazonaws.com", + partition: "aws", signingService: "pricing", }; break; case "us-east-1": regionInfo = { hostname: "api.pricing.us-east-1.amazonaws.com", + partition: "aws", signingService: "pricing", }; break; @@ -54,33 +56,39 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "pricing", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", signingService: "pricing", }; } diff --git a/clients/client-qldb-session/endpoints.ts b/clients/client-qldb-session/endpoints.ts index 407857e0a656..a4c14080c479 100644 --- a/clients/client-qldb-session/endpoints.ts +++ b/clients/client-qldb-session/endpoints.ts @@ -40,46 +40,55 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "session.qldb.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "session.qldb.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "session.qldb.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "session.qldb.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "session.qldb.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "session.qldb.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "session.qldb.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "session.qldb.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "session.qldb.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -87,32 +96,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-qldb/endpoints.ts b/clients/client-qldb/endpoints.ts index 375d0a27799c..9d8b89052a53 100644 --- a/clients/client-qldb/endpoints.ts +++ b/clients/client-qldb/endpoints.ts @@ -40,46 +40,55 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "qldb.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "qldb.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "qldb.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "qldb.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "qldb.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "qldb.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "qldb.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "qldb.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "qldb.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -87,32 +96,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-quicksight/endpoints.ts b/clients/client-quicksight/endpoints.ts index 5bfcce2b58af..e199a4b5918d 100644 --- a/clients/client-quicksight/endpoints.ts +++ b/clients/client-quicksight/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ram/endpoints.ts b/clients/client-ram/endpoints.ts index ea8e1a1286f2..1e0b6a1ec065 100644 --- a/clients/client-ram/endpoints.ts +++ b/clients/client-ram/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "ram.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "ram.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "ram.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "ram.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "ram.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "ram.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "ram.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "ram.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "ram.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "ram.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "ram.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "ram.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "ram.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "ram.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "ram.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "ram.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "ram.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "ram.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-rds-data/endpoints.ts b/clients/client-rds-data/endpoints.ts index 76161795e0ee..4de853250df2 100644 --- a/clients/client-rds-data/endpoints.ts +++ b/clients/client-rds-data/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-rds/endpoints.ts b/clients/client-rds/endpoints.ts index fd001fb9a95d..d46a9ac91805 100644 --- a/clients/client-rds/endpoints.ts +++ b/clients/client-rds/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "rds.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "rds.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "rds.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "rds.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "rds.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "rds.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "rds.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "rds.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "rds.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "rds.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "rds.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "rds.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "rds.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "rds.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "rds.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "rds.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "rds.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "rds.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "rds.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "rds.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "rds.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "rds.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "rds.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "rds.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-redshift/endpoints.ts b/clients/client-redshift/endpoints.ts index 5098458e2243..2c0727026aaa 100644 --- a/clients/client-redshift/endpoints.ts +++ b/clients/client-redshift/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "redshift.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "redshift.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "redshift.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "redshift.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "redshift.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "redshift.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "redshift.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "redshift.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "redshift.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "redshift.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "redshift.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "redshift.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "redshift.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "redshift.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "redshift.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "redshift.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "redshift.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "redshift.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "redshift.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "redshift.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "redshift.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "redshift.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "redshift.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "redshift.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-rekognition/endpoints.ts b/clients/client-rekognition/endpoints.ts index 7c1422ea697f..8daf8eebd100 100644 --- a/clients/client-rekognition/endpoints.ts +++ b/clients/client-rekognition/endpoints.ts @@ -40,66 +40,79 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "rekognition.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "rekognition.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "rekognition.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "rekognition.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "rekognition.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "rekognition.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "rekognition.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "rekognition.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "rekognition.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "rekognition.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "rekognition.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "rekognition.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "rekognition.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -107,32 +120,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-resource-groups-tagging-api/endpoints.ts b/clients/client-resource-groups-tagging-api/endpoints.ts index 45c20b50572c..23cf543f8722 100644 --- a/clients/client-resource-groups-tagging-api/endpoints.ts +++ b/clients/client-resource-groups-tagging-api/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "tagging.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "tagging.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "tagging.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "tagging.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "tagging.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "tagging.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "tagging.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "tagging.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "tagging.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "tagging.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "tagging.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "tagging.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "tagging.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "tagging.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "tagging.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "tagging.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "tagging.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "tagging.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "tagging.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "tagging.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "tagging.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "tagging.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-resource-groups/endpoints.ts b/clients/client-resource-groups/endpoints.ts index 23984287d90c..2bf89e02911a 100644 --- a/clients/client-resource-groups/endpoints.ts +++ b/clients/client-resource-groups/endpoints.ts @@ -40,137 +40,163 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "resource-groups.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "resource-groups.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "resource-groups.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "resource-groups.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "resource-groups.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "resource-groups.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "resource-groups.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "resource-groups.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "resource-groups.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "resource-groups.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "resource-groups.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "resource-groups.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips-us-east-1": regionInfo = { hostname: "resource-groups-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "fips-us-east-2": regionInfo = { hostname: "resource-groups-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "fips-us-gov-east-1": regionInfo = { hostname: "resource-groups.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "fips-us-gov-west-1": regionInfo = { hostname: "resource-groups.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "fips-us-west-1": regionInfo = { hostname: "resource-groups-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "fips-us-west-2": regionInfo = { hostname: "resource-groups-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; case "me-south-1": regionInfo = { hostname: "resource-groups.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "resource-groups.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "resource-groups.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "resource-groups.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "resource-groups.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "resource-groups.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "resource-groups.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "resource-groups.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -178,32 +204,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-robomaker/endpoints.ts b/clients/client-robomaker/endpoints.ts index 5c79fa6d8dc5..9a6a68c99ddd 100644 --- a/clients/client-robomaker/endpoints.ts +++ b/clients/client-robomaker/endpoints.ts @@ -40,36 +40,43 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "robomaker.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "robomaker.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "robomaker.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "robomaker.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "robomaker.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "robomaker.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "robomaker.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -77,32 +84,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-route-53-domains/endpoints.ts b/clients/client-route-53-domains/endpoints.ts index 8ece1fd612ba..b24c77721f9e 100644 --- a/clients/client-route-53-domains/endpoints.ts +++ b/clients/client-route-53-domains/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "route53domains.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-route-53/endpoints.ts b/clients/client-route-53/endpoints.ts index 732e8bd24277..070bd72d2b4c 100644 --- a/clients/client-route-53/endpoints.ts +++ b/clients/client-route-53/endpoints.ts @@ -40,18 +40,21 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "route53.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "aws-iso-global": regionInfo = { hostname: "route53.c2s.ic.gov", + partition: "aws-iso", signingRegion: "us-iso-east-1", }; break; case "aws-us-gov-global": regionInfo = { hostname: "route53.us-gov.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; @@ -63,6 +66,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { @@ -71,6 +75,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { diff --git a/clients/client-route53resolver/endpoints.ts b/clients/client-route53resolver/endpoints.ts index 5a543acac0a1..361feb3fce83 100644 --- a/clients/client-route53resolver/endpoints.ts +++ b/clients/client-route53resolver/endpoints.ts @@ -40,81 +40,97 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "route53resolver.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "route53resolver.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "route53resolver.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "route53resolver.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "route53resolver.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "route53resolver.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "route53resolver.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "route53resolver.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "route53resolver.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "route53resolver.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "route53resolver.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "route53resolver.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "route53resolver.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "route53resolver.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "route53resolver.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "route53resolver.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -122,32 +138,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-s3-control/endpoints.ts b/clients/client-s3-control/endpoints.ts index ef72dfbf3cf8..d7e29dcc47dc 100644 --- a/clients/client-s3-control/endpoints.ts +++ b/clients/client-s3-control/endpoints.ts @@ -40,156 +40,182 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "s3-control.ap-northeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-northeast-1", }; break; case "ap-northeast-2": regionInfo = { hostname: "s3-control.ap-northeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-northeast-2", }; break; case "ap-south-1": regionInfo = { hostname: "s3-control.ap-south-1.amazonaws.com", + partition: "aws", signingRegion: "ap-south-1", }; break; case "ap-southeast-1": regionInfo = { hostname: "s3-control.ap-southeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-1", }; break; case "ap-southeast-2": regionInfo = { hostname: "s3-control.ap-southeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-2", }; break; case "ca-central-1": regionInfo = { hostname: "s3-control.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "cn-north-1": regionInfo = { hostname: "s3-control.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-north-1", }; break; case "cn-northwest-1": regionInfo = { hostname: "s3-control.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-northwest-1", }; break; case "eu-central-1": regionInfo = { hostname: "s3-control.eu-central-1.amazonaws.com", + partition: "aws", signingRegion: "eu-central-1", }; break; case "eu-north-1": regionInfo = { hostname: "s3-control.eu-north-1.amazonaws.com", + partition: "aws", signingRegion: "eu-north-1", }; break; case "eu-west-1": regionInfo = { hostname: "s3-control.eu-west-1.amazonaws.com", + partition: "aws", signingRegion: "eu-west-1", }; break; case "eu-west-2": regionInfo = { hostname: "s3-control.eu-west-2.amazonaws.com", + partition: "aws", signingRegion: "eu-west-2", }; break; case "eu-west-3": regionInfo = { hostname: "s3-control.eu-west-3.amazonaws.com", + partition: "aws", signingRegion: "eu-west-3", }; break; case "sa-east-1": regionInfo = { hostname: "s3-control.sa-east-1.amazonaws.com", + partition: "aws", signingRegion: "sa-east-1", }; break; case "us-east-1": regionInfo = { hostname: "s3-control.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-1-fips": regionInfo = { hostname: "s3-control-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "s3-control.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-east-2-fips": regionInfo = { hostname: "s3-control-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "s3-control.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-east-1-fips": regionInfo = { hostname: "s3-control-fips.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "s3-control.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "s3-control-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-west-1": regionInfo = { hostname: "s3-control.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-1-fips": regionInfo = { hostname: "s3-control-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "s3-control.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; case "us-west-2-fips": regionInfo = { hostname: "s3-control-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -198,32 +224,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-s3/endpoints.ts b/clients/client-s3/endpoints.ts index 2b927f118e89..2182470af371 100644 --- a/clients/client-s3/endpoints.ts +++ b/clients/client-s3/endpoints.ts @@ -40,133 +40,159 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "s3.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "s3.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "s3.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "s3.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "s3.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "s3.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "s3.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "s3.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "s3.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "s3.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "s3.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "s3.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "s3.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "s3.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips-us-gov-west-1": regionInfo = { hostname: "s3-fips-us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "me-south-1": regionInfo = { hostname: "s3.me-south-1.amazonaws.com", + partition: "aws", }; break; case "s3-external-1": regionInfo = { hostname: "s3-external-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "sa-east-1": regionInfo = { hostname: "s3.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "s3.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "s3.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "s3.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "s3.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "s3.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "s3.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "s3.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "s3.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -174,32 +200,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sagemaker-a2i-runtime/endpoints.ts b/clients/client-sagemaker-a2i-runtime/endpoints.ts index 8111eb5b68e2..286d3e1796d7 100644 --- a/clients/client-sagemaker-a2i-runtime/endpoints.ts +++ b/clients/client-sagemaker-a2i-runtime/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sagemaker-runtime/endpoints.ts b/clients/client-sagemaker-runtime/endpoints.ts index f24e0ea7f7e1..f0bc27d94ed9 100644 --- a/clients/client-sagemaker-runtime/endpoints.ts +++ b/clients/client-sagemaker-runtime/endpoints.ts @@ -40,124 +40,148 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "runtime.sagemaker.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "runtime.sagemaker.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "runtime.sagemaker.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "runtime.sagemaker.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "runtime.sagemaker.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "runtime.sagemaker.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "runtime.sagemaker.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "runtime.sagemaker.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "runtime.sagemaker.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "runtime.sagemaker.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "runtime.sagemaker.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "runtime.sagemaker.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "runtime.sagemaker.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "runtime.sagemaker.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "runtime.sagemaker.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "runtime-fips.sagemaker.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "runtime.sagemaker.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "runtime-fips.sagemaker.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-west-1": regionInfo = { hostname: "runtime.sagemaker.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "runtime.sagemaker.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "runtime.sagemaker.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "runtime-fips.sagemaker.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "runtime.sagemaker.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "runtime-fips.sagemaker.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -166,32 +190,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sagemaker/endpoints.ts b/clients/client-sagemaker/endpoints.ts index aafb2fde9ade..5fc3d50a6b3c 100644 --- a/clients/client-sagemaker/endpoints.ts +++ b/clients/client-sagemaker/endpoints.ts @@ -40,124 +40,148 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "api.sagemaker.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "api.sagemaker.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "api.sagemaker.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "api.sagemaker.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "api.sagemaker.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "api.sagemaker.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "api.sagemaker.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "api.sagemaker.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "api.sagemaker.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "api.sagemaker.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "api.sagemaker.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "api.sagemaker.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "api.sagemaker.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "api.sagemaker.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "api.sagemaker.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "api-fips.sagemaker.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "api.sagemaker.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "api-fips.sagemaker.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-west-1": regionInfo = { hostname: "api.sagemaker.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "api.sagemaker.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-1": regionInfo = { hostname: "api.sagemaker.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "api-fips.sagemaker.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "api.sagemaker.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "api-fips.sagemaker.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -166,32 +190,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-savingsplans/endpoints.ts b/clients/client-savingsplans/endpoints.ts index 38825225e111..a9ab1770463c 100644 --- a/clients/client-savingsplans/endpoints.ts +++ b/clients/client-savingsplans/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "savingsplans.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -51,21 +52,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-schemas/endpoints.ts b/clients/client-schemas/endpoints.ts index 52cda5b0c870..55b7d71d8ac1 100644 --- a/clients/client-schemas/endpoints.ts +++ b/clients/client-schemas/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-secrets-manager/endpoints.ts b/clients/client-secrets-manager/endpoints.ts index b96d10894e14..eb90efc0feac 100644 --- a/clients/client-secrets-manager/endpoints.ts +++ b/clients/client-secrets-manager/endpoints.ts @@ -40,136 +40,162 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "secretsmanager.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "secretsmanager.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "secretsmanager.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "secretsmanager.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "secretsmanager.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "secretsmanager.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "secretsmanager.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "secretsmanager.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "secretsmanager.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "secretsmanager.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "secretsmanager.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "secretsmanager.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "secretsmanager.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "secretsmanager.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "secretsmanager.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "secretsmanager-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "secretsmanager.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "secretsmanager-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "secretsmanager.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-east-1-fips": regionInfo = { hostname: "secretsmanager-fips.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-east-1", }; break; case "us-gov-west-1": regionInfo = { hostname: "secretsmanager.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "secretsmanager-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-west-1": regionInfo = { hostname: "secretsmanager.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "secretsmanager-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "secretsmanager.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "secretsmanager-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -178,32 +204,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-securityhub/endpoints.ts b/clients/client-securityhub/endpoints.ts index 9a50c2c65ca8..5647303bba27 100644 --- a/clients/client-securityhub/endpoints.ts +++ b/clients/client-securityhub/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "securityhub.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "securityhub.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "securityhub.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "securityhub.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "securityhub.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "securityhub.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "securityhub.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "securityhub.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "securityhub.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "securityhub.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "securityhub.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "securityhub.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "securityhub.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "securityhub.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "securityhub.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "securityhub.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "securityhub.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "securityhub.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-serverlessapplicationrepository/endpoints.ts b/clients/client-serverlessapplicationrepository/endpoints.ts index fc3cd4c6cb1d..197ed9694c89 100644 --- a/clients/client-serverlessapplicationrepository/endpoints.ts +++ b/clients/client-serverlessapplicationrepository/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "serverlessrepo.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "serverlessrepo.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "serverlessrepo.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "serverlessrepo.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "serverlessrepo.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "serverlessrepo.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "serverlessrepo.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "serverlessrepo.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "serverlessrepo.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "serverlessrepo.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "serverlessrepo.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "serverlessrepo.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "serverlessrepo.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "serverlessrepo.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "serverlessrepo.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "serverlessrepo.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "serverlessrepo.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "serverlessrepo.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "serverlessrepo.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "serverlessrepo.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-service-catalog/endpoints.ts b/clients/client-service-catalog/endpoints.ts index af271fdae2ec..5c795aa68ca6 100644 --- a/clients/client-service-catalog/endpoints.ts +++ b/clients/client-service-catalog/endpoints.ts @@ -40,115 +40,137 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "servicecatalog.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "servicecatalog.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "servicecatalog.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "servicecatalog.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "servicecatalog.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "servicecatalog.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "servicecatalog.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "servicecatalog.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "servicecatalog.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "servicecatalog.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "servicecatalog.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "servicecatalog.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "servicecatalog.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "servicecatalog-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "servicecatalog.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "servicecatalog-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-west-1": regionInfo = { hostname: "servicecatalog.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "servicecatalog-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-west-1": regionInfo = { hostname: "servicecatalog.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "servicecatalog-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "servicecatalog.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "servicecatalog-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -157,32 +179,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-service-quotas/endpoints.ts b/clients/client-service-quotas/endpoints.ts index 6358002ccfd8..2e4cc96e662f 100644 --- a/clients/client-service-quotas/endpoints.ts +++ b/clients/client-service-quotas/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-servicediscovery/endpoints.ts b/clients/client-servicediscovery/endpoints.ts index fae3820afbfd..5699e3a1c955 100644 --- a/clients/client-servicediscovery/endpoints.ts +++ b/clients/client-servicediscovery/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "servicediscovery.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "servicediscovery.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "servicediscovery.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "servicediscovery.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "servicediscovery.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "servicediscovery.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "servicediscovery.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "servicediscovery.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "servicediscovery.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "servicediscovery.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "servicediscovery.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "servicediscovery.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "servicediscovery.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "servicediscovery.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "servicediscovery.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "servicediscovery.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "servicediscovery.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "servicediscovery.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ses/endpoints.ts b/clients/client-ses/endpoints.ts index 56dcb46a5c89..fa01f52b2a57 100644 --- a/clients/client-ses/endpoints.ts +++ b/clients/client-ses/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-south-1": regionInfo = { hostname: "email.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "email.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "email.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "email.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "email.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "email.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sesv2/endpoints.ts b/clients/client-sesv2/endpoints.ts index 56dcb46a5c89..fa01f52b2a57 100644 --- a/clients/client-sesv2/endpoints.ts +++ b/clients/client-sesv2/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-south-1": regionInfo = { hostname: "email.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "email.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "email.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "email.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "email.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "email.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sfn/endpoints.ts b/clients/client-sfn/endpoints.ts index bae5dfb3ce0c..408d223fad47 100644 --- a/clients/client-sfn/endpoints.ts +++ b/clients/client-sfn/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "states.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "states.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "states.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "states.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "states.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "states.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "states.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "states.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "states.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "states.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "states.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "states.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "states.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "states.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "states.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "states.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "states.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "states.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "states.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "states.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "states.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "states.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "states.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "states.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-shield/endpoints.ts b/clients/client-shield/endpoints.ts index 8316d3ba85c5..f2cb873839bc 100644 --- a/clients/client-shield/endpoints.ts +++ b/clients/client-shield/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "us-east-1": regionInfo = { hostname: "shield.us-east-1.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -47,32 +48,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-signer/endpoints.ts b/clients/client-signer/endpoints.ts index 183420f5a5eb..19618e179751 100644 --- a/clients/client-signer/endpoints.ts +++ b/clients/client-signer/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sms/endpoints.ts b/clients/client-sms/endpoints.ts index 339525e9cb1c..ba9ebe98c5d9 100644 --- a/clients/client-sms/endpoints.ts +++ b/clients/client-sms/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "sms.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "sms.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "sms.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "sms.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "sms.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "sms.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "sms.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "sms.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "sms.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "sms.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "sms.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "sms.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "sms.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "sms.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "sms.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "sms.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "sms.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "sms.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "sms.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "sms.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "sms.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "sms.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-snowball/endpoints.ts b/clients/client-snowball/endpoints.ts index 8db884271633..d20cd33be046 100644 --- a/clients/client-snowball/endpoints.ts +++ b/clients/client-snowball/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "snowball.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "snowball.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "snowball.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "snowball.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "snowball.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "snowball.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "snowball.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "snowball.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "snowball.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "snowball.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "snowball.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "snowball.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "snowball.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "snowball.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "snowball.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "snowball.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "snowball.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "snowball.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "snowball.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "snowball.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sns/endpoints.ts b/clients/client-sns/endpoints.ts index 5611f3a9233b..1489e80bfc69 100644 --- a/clients/client-sns/endpoints.ts +++ b/clients/client-sns/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "sns.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "sns.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "sns.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "sns.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "sns.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "sns.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "sns.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "sns.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "sns.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "sns.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "sns.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "sns.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "sns.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "sns.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "sns.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "sns.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "sns.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "sns.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "sns.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "sns.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "sns.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "sns.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "sns.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "sns.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sqs/endpoints.ts b/clients/client-sqs/endpoints.ts index 765cd7938fe9..524c91353ba4 100644 --- a/clients/client-sqs/endpoints.ts +++ b/clients/client-sqs/endpoints.ts @@ -40,145 +40,173 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "sqs.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "sqs.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "sqs.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "sqs.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "sqs.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "sqs.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "sqs.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "sqs.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "sqs.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "sqs.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "sqs.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "sqs.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "sqs.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "sqs.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "fips-us-east-1": regionInfo = { hostname: "sqs-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "fips-us-east-2": regionInfo = { hostname: "sqs-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "fips-us-west-1": regionInfo = { hostname: "sqs-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "fips-us-west-2": regionInfo = { hostname: "sqs-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; case "me-south-1": regionInfo = { hostname: "sqs.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "sqs.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "sqs.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "sqs.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "sqs.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "sqs.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "sqs.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "sqs.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "sqs.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "sqs.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -186,32 +214,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-ssm/endpoints.ts b/clients/client-ssm/endpoints.ts index 3d1d67a50085..989a7fbcb650 100644 --- a/clients/client-ssm/endpoints.ts +++ b/clients/client-ssm/endpoints.ts @@ -40,111 +40,133 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "ssm.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "ssm.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "ssm.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "ssm.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "ssm.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "ssm.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "ssm.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "ssm.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "ssm.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "ssm.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "ssm.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "ssm.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "ssm.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "ssm.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "ssm.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "ssm.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "ssm.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "ssm.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "ssm.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "ssm.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "ssm.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "ssm.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -152,32 +174,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sso-oidc/endpoints.ts b/clients/client-sso-oidc/endpoints.ts index 603af2ffbbe0..2400e9e78510 100644 --- a/clients/client-sso-oidc/endpoints.ts +++ b/clients/client-sso-oidc/endpoints.ts @@ -40,54 +40,63 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-1": regionInfo = { hostname: "oidc.ap-southeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-1", }; break; case "ap-southeast-2": regionInfo = { hostname: "oidc.ap-southeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-2", }; break; case "ca-central-1": regionInfo = { hostname: "oidc.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "eu-central-1": regionInfo = { hostname: "oidc.eu-central-1.amazonaws.com", + partition: "aws", signingRegion: "eu-central-1", }; break; case "eu-west-1": regionInfo = { hostname: "oidc.eu-west-1.amazonaws.com", + partition: "aws", signingRegion: "eu-west-1", }; break; case "eu-west-2": regionInfo = { hostname: "oidc.eu-west-2.amazonaws.com", + partition: "aws", signingRegion: "eu-west-2", }; break; case "us-east-1": regionInfo = { hostname: "oidc.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "oidc.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-west-2": regionInfo = { hostname: "oidc.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -96,32 +105,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sso/endpoints.ts b/clients/client-sso/endpoints.ts index 7f23ac359cac..758e3f0938b8 100644 --- a/clients/client-sso/endpoints.ts +++ b/clients/client-sso/endpoints.ts @@ -40,54 +40,63 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-1": regionInfo = { hostname: "portal.sso.ap-southeast-1.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-1", }; break; case "ap-southeast-2": regionInfo = { hostname: "portal.sso.ap-southeast-2.amazonaws.com", + partition: "aws", signingRegion: "ap-southeast-2", }; break; case "ca-central-1": regionInfo = { hostname: "portal.sso.ca-central-1.amazonaws.com", + partition: "aws", signingRegion: "ca-central-1", }; break; case "eu-central-1": regionInfo = { hostname: "portal.sso.eu-central-1.amazonaws.com", + partition: "aws", signingRegion: "eu-central-1", }; break; case "eu-west-1": regionInfo = { hostname: "portal.sso.eu-west-1.amazonaws.com", + partition: "aws", signingRegion: "eu-west-1", }; break; case "eu-west-2": regionInfo = { hostname: "portal.sso.eu-west-2.amazonaws.com", + partition: "aws", signingRegion: "eu-west-2", }; break; case "us-east-1": regionInfo = { hostname: "portal.sso.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "portal.sso.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-west-2": regionInfo = { hostname: "portal.sso.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -96,32 +105,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-storage-gateway/endpoints.ts b/clients/client-storage-gateway/endpoints.ts index 8c2156b47e97..f927a34ef4b2 100644 --- a/clients/client-storage-gateway/endpoints.ts +++ b/clients/client-storage-gateway/endpoints.ts @@ -40,101 +40,121 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "storagegateway.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "storagegateway.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "storagegateway.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "storagegateway.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "storagegateway.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "storagegateway.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "storagegateway.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "storagegateway.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "storagegateway.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "storagegateway.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "storagegateway.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "storagegateway.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "storagegateway.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "storagegateway.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "storagegateway.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "storagegateway.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "storagegateway.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "storagegateway.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "storagegateway.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "storagegateway.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -142,32 +162,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-sts/endpoints.ts b/clients/client-sts/endpoints.ts index 3af7679ef6c7..f367beec694c 100644 --- a/clients/client-sts/endpoints.ts +++ b/clients/client-sts/endpoints.ts @@ -40,150 +40,179 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "sts.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "sts.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "sts.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "sts.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "sts.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "sts.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "aws-global": regionInfo = { hostname: "sts.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "ca-central-1": regionInfo = { hostname: "sts.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "sts.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "sts.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "sts.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "sts.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "sts.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "sts.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "sts.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "sts.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "sts.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "sts.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "sts-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "sts.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "sts-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-east-1": regionInfo = { hostname: "sts.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "sts.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "sts.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "sts.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "sts.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-1-fips": regionInfo = { hostname: "sts-fips.us-west-1.amazonaws.com", + partition: "aws", signingRegion: "us-west-1", }; break; case "us-west-2": regionInfo = { hostname: "sts.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "sts-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -192,32 +221,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-support/endpoints.ts b/clients/client-support/endpoints.ts index 073b66e36376..ad2a66fd5335 100644 --- a/clients/client-support/endpoints.ts +++ b/clients/client-support/endpoints.ts @@ -40,24 +40,28 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-cn-global": regionInfo = { hostname: "support.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-north-1", }; break; case "aws-global": regionInfo = { hostname: "support.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "aws-iso-b-global": regionInfo = { hostname: "support.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", signingRegion: "us-isob-east-1", }; break; case "aws-iso-global": regionInfo = { hostname: "support.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", signingRegion: "us-iso-east-1", }; break; @@ -66,32 +70,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-swf/endpoints.ts b/clients/client-swf/endpoints.ts index 44ced29ac6c8..002ff3d4b0dc 100644 --- a/clients/client-swf/endpoints.ts +++ b/clients/client-swf/endpoints.ts @@ -40,121 +40,145 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "swf.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "swf.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "swf.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "swf.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "swf.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "swf.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "swf.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "swf.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "cn-northwest-1": regionInfo = { hostname: "swf.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "swf.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "swf.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "swf.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "swf.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "swf.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "swf.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "swf.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "swf.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "swf.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-east-1": regionInfo = { hostname: "swf.us-gov-east-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1": regionInfo = { hostname: "swf.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "swf.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-isob-east-1": regionInfo = { hostname: "swf.us-isob-east-1.sc2s.sgov.gov", + partition: "aws-iso-b", }; break; case "us-west-1": regionInfo = { hostname: "swf.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "swf.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -162,32 +186,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-textract/endpoints.ts b/clients/client-textract/endpoints.ts index bffd7a0ecb32..75e338c7d689 100644 --- a/clients/client-textract/endpoints.ts +++ b/clients/client-textract/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-transcribe-streaming/endpoints.ts b/clients/client-transcribe-streaming/endpoints.ts index 11acae6c510a..774b1dfe36d6 100644 --- a/clients/client-transcribe-streaming/endpoints.ts +++ b/clients/client-transcribe-streaming/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-southeast-2": regionInfo = { hostname: "transcribestreaming.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "transcribestreaming.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "transcribestreaming.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "transcribestreaming.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "transcribestreaming.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "transcribestreaming.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-transcribe/endpoints.ts b/clients/client-transcribe/endpoints.ts index 290b52a84f9e..23210efa29f5 100644 --- a/clients/client-transcribe/endpoints.ts +++ b/clients/client-transcribe/endpoints.ts @@ -40,103 +40,123 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "transcribe.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "transcribe.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "transcribe.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "transcribe.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "transcribe.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "transcribe.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "transcribe.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-north-1": regionInfo = { hostname: "cn.transcribe.cn-north-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-north-1", }; break; case "cn-northwest-1": regionInfo = { hostname: "cn.transcribe.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", signingRegion: "cn-northwest-1", }; break; case "eu-central-1": regionInfo = { hostname: "transcribe.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "transcribe.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "transcribe.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "transcribe.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "transcribe.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "transcribe.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "transcribe.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "transcribe.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "transcribe.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "transcribe.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "transcribe.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -144,32 +164,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-transfer/endpoints.ts b/clients/client-transfer/endpoints.ts index 07565b508351..bf484fa0bf8c 100644 --- a/clients/client-transfer/endpoints.ts +++ b/clients/client-transfer/endpoints.ts @@ -40,81 +40,97 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "transfer.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "transfer.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "transfer.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "transfer.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "transfer.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "transfer.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "transfer.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "transfer.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "transfer.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "transfer.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "transfer.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "transfer.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "transfer.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "transfer.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "transfer.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "transfer.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -122,32 +138,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-translate/endpoints.ts b/clients/client-translate/endpoints.ts index 53663f69e216..e85305b4a01f 100644 --- a/clients/client-translate/endpoints.ts +++ b/clients/client-translate/endpoints.ts @@ -40,79 +40,94 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "translate.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "translate.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "translate.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "translate.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "translate.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "translate.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "translate.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "translate.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1-fips": regionInfo = { hostname: "translate-fips.us-east-1.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; case "us-east-2": regionInfo = { hostname: "translate.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-east-2-fips": regionInfo = { hostname: "translate-fips.us-east-2.amazonaws.com", + partition: "aws", signingRegion: "us-east-2", }; break; case "us-gov-west-1": regionInfo = { hostname: "translate.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-gov-west-1-fips": regionInfo = { hostname: "translate-fips.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", signingRegion: "us-gov-west-1", }; break; case "us-west-2": regionInfo = { hostname: "translate.us-west-2.amazonaws.com", + partition: "aws", }; break; case "us-west-2-fips": regionInfo = { hostname: "translate-fips.us-west-2.amazonaws.com", + partition: "aws", signingRegion: "us-west-2", }; break; @@ -121,32 +136,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-waf-regional/endpoints.ts b/clients/client-waf-regional/endpoints.ts index 82b06b13623d..995eb4c397ab 100644 --- a/clients/client-waf-regional/endpoints.ts +++ b/clients/client-waf-regional/endpoints.ts @@ -40,86 +40,103 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "waf-regional.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "waf-regional.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "waf-regional.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "waf-regional.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "waf-regional.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "waf-regional.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "waf-regional.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "waf-regional.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "waf-regional.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "waf-regional.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "waf-regional.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "waf-regional.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "waf-regional.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "waf-regional.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "waf-regional.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-west-1": regionInfo = { hostname: "waf-regional.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "waf-regional.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -127,32 +144,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-waf/endpoints.ts b/clients/client-waf/endpoints.ts index 3b1bbeda99bc..df47b2745e33 100644 --- a/clients/client-waf/endpoints.ts +++ b/clients/client-waf/endpoints.ts @@ -40,6 +40,7 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "aws-global": regionInfo = { hostname: "waf.amazonaws.com", + partition: "aws", signingRegion: "us-east-1", }; break; @@ -51,21 +52,25 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. diff --git a/clients/client-wafv2/endpoints.ts b/clients/client-wafv2/endpoints.ts index 748d8f0d71c8..87f0b19bf51f 100644 --- a/clients/client-wafv2/endpoints.ts +++ b/clients/client-wafv2/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-workdocs/endpoints.ts b/clients/client-workdocs/endpoints.ts index e89eaa67caa2..24fd760f6c2e 100644 --- a/clients/client-workdocs/endpoints.ts +++ b/clients/client-workdocs/endpoints.ts @@ -40,31 +40,37 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "workdocs.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "workdocs.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "workdocs.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "workdocs.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "workdocs.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "workdocs.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -72,32 +78,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-worklink/endpoints.ts b/clients/client-worklink/endpoints.ts index 2c4b313b72a7..a10656a19634 100644 --- a/clients/client-worklink/endpoints.ts +++ b/clients/client-worklink/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-workmail/endpoints.ts b/clients/client-workmail/endpoints.ts index 2748e0d31d94..cdba74d3e75b 100644 --- a/clients/client-workmail/endpoints.ts +++ b/clients/client-workmail/endpoints.ts @@ -40,16 +40,19 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "eu-west-1": regionInfo = { hostname: "workmail.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "workmail.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "workmail.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -57,32 +60,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-workmailmessageflow/endpoints.ts b/clients/client-workmailmessageflow/endpoints.ts index 8ac944fe3dc0..d2f19a1cbd6e 100644 --- a/clients/client-workmailmessageflow/endpoints.ts +++ b/clients/client-workmailmessageflow/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-workspaces/endpoints.ts b/clients/client-workspaces/endpoints.ts index 4ef390a95d58..bf31ddfa91c8 100644 --- a/clients/client-workspaces/endpoints.ts +++ b/clients/client-workspaces/endpoints.ts @@ -40,71 +40,85 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-northeast-1": regionInfo = { hostname: "workspaces.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "workspaces.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "workspaces.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "workspaces.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "workspaces.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "cn-northwest-1": regionInfo = { hostname: "workspaces.cn-northwest-1.amazonaws.com.cn", + partition: "aws-cn", }; break; case "eu-central-1": regionInfo = { hostname: "workspaces.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "workspaces.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "workspaces.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "workspaces.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "workspaces.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-gov-west-1": regionInfo = { hostname: "workspaces.us-gov-west-1.amazonaws.com", + partition: "aws-us-gov", }; break; case "us-iso-east-1": regionInfo = { hostname: "workspaces.us-iso-east-1.c2s.ic.gov", + partition: "aws-iso", }; break; case "us-west-2": regionInfo = { hostname: "workspaces.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -112,32 +126,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/clients/client-xray/endpoints.ts b/clients/client-xray/endpoints.ts index b208a15eb1f4..fc065c572c49 100644 --- a/clients/client-xray/endpoints.ts +++ b/clients/client-xray/endpoints.ts @@ -40,91 +40,109 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op case "ap-east-1": regionInfo = { hostname: "xray.ap-east-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-1": regionInfo = { hostname: "xray.ap-northeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-northeast-2": regionInfo = { hostname: "xray.ap-northeast-2.amazonaws.com", + partition: "aws", }; break; case "ap-south-1": regionInfo = { hostname: "xray.ap-south-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-1": regionInfo = { hostname: "xray.ap-southeast-1.amazonaws.com", + partition: "aws", }; break; case "ap-southeast-2": regionInfo = { hostname: "xray.ap-southeast-2.amazonaws.com", + partition: "aws", }; break; case "ca-central-1": regionInfo = { hostname: "xray.ca-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-central-1": regionInfo = { hostname: "xray.eu-central-1.amazonaws.com", + partition: "aws", }; break; case "eu-north-1": regionInfo = { hostname: "xray.eu-north-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-1": regionInfo = { hostname: "xray.eu-west-1.amazonaws.com", + partition: "aws", }; break; case "eu-west-2": regionInfo = { hostname: "xray.eu-west-2.amazonaws.com", + partition: "aws", }; break; case "eu-west-3": regionInfo = { hostname: "xray.eu-west-3.amazonaws.com", + partition: "aws", }; break; case "me-south-1": regionInfo = { hostname: "xray.me-south-1.amazonaws.com", + partition: "aws", }; break; case "sa-east-1": regionInfo = { hostname: "xray.sa-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-1": regionInfo = { hostname: "xray.us-east-1.amazonaws.com", + partition: "aws", }; break; case "us-east-2": regionInfo = { hostname: "xray.us-east-2.amazonaws.com", + partition: "aws", }; break; case "us-west-1": regionInfo = { hostname: "xray.us-west-1.amazonaws.com", + partition: "aws", }; break; case "us-west-2": regionInfo = { hostname: "xray.us-west-2.amazonaws.com", + partition: "aws", }; break; // Next, try to match partition endpoints. @@ -132,32 +150,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/protocol_tests/aws-ec2/endpoints.ts b/protocol_tests/aws-ec2/endpoints.ts index aadb9770227d..935fd7ad816a 100644 --- a/protocol_tests/aws-ec2/endpoints.ts +++ b/protocol_tests/aws-ec2/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/protocol_tests/aws-json/endpoints.ts b/protocol_tests/aws-json/endpoints.ts index aa2a75acf94d..0a08bfc63522 100644 --- a/protocol_tests/aws-json/endpoints.ts +++ b/protocol_tests/aws-json/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/protocol_tests/aws-query/endpoints.ts b/protocol_tests/aws-query/endpoints.ts index 79c9b755f5ba..effff026b8a7 100644 --- a/protocol_tests/aws-query/endpoints.ts +++ b/protocol_tests/aws-query/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/protocol_tests/aws-restjson/endpoints.ts b/protocol_tests/aws-restjson/endpoints.ts index 67a83dae09c8..be7acff268c7 100644 --- a/protocol_tests/aws-restjson/endpoints.ts +++ b/protocol_tests/aws-restjson/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } diff --git a/protocol_tests/aws-restxml/endpoints.ts b/protocol_tests/aws-restxml/endpoints.ts index d41d62369d7a..00dea20a92a8 100644 --- a/protocol_tests/aws-restxml/endpoints.ts +++ b/protocol_tests/aws-restxml/endpoints.ts @@ -42,32 +42,38 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op if (AWS_REGIONS.has(region)) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } if (AWS_CN_REGIONS.has(region)) { regionInfo = { hostname: AWS_CN_TEMPLATE.replace("{region}", region), + partition: "aws-cn", }; } if (AWS_ISO_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_TEMPLATE.replace("{region}", region), + partition: "aws-iso", }; } if (AWS_ISO_B_REGIONS.has(region)) { regionInfo = { hostname: AWS_ISO_B_TEMPLATE.replace("{region}", region), + partition: "aws-iso-b", }; } if (AWS_US_GOV_REGIONS.has(region)) { regionInfo = { hostname: AWS_US_GOV_TEMPLATE.replace("{region}", region), + partition: "aws-us-gov", }; } // Finally, assume it's an AWS partition endpoint. if (regionInfo === undefined) { regionInfo = { hostname: AWS_TEMPLATE.replace("{region}", region), + partition: "aws", }; } } From dde913f921f17215056f2fa3417ea67f27c6d0a2 Mon Sep 17 00:00:00 2001 From: AllanFly120 Date: Fri, 14 Aug 2020 16:18:02 +0000 Subject: [PATCH 3/3] feat(types): make patition in RegionInfo required --- packages/types/src/util.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/types/src/util.ts b/packages/types/src/util.ts index 796e82826ab5..07bf695a2ab5 100644 --- a/packages/types/src/util.ts +++ b/packages/types/src/util.ts @@ -77,10 +77,10 @@ export interface UrlParser { */ export interface RegionInfo { hostname: string; + partition: string; path?: string; signingService?: string; signingRegion?: string; - partition?: string; } /**