From ef071d5e47566def814205ab35907391a2918266 Mon Sep 17 00:00:00 2001 From: awstools Date: Thu, 6 Oct 2022 18:40:35 +0000 Subject: [PATCH] feat(clients): update client endpoints as of 2022-10-06 --- clients/client-ec2/src/endpoints.ts | 8 +++ clients/client-pinpoint/src/endpoints.ts | 14 ++++ .../client-timestream-write/src/endpoints.ts | 33 ++++++++- .../aws/typescript/codegen/endpoints.json | 68 ++++++++++++++++++- 4 files changed, 119 insertions(+), 4 deletions(-) diff --git a/clients/client-ec2/src/endpoints.ts b/clients/client-ec2/src/endpoints.ts index 986eff093fed..1f76860afb15 100644 --- a/clients/client-ec2/src/endpoints.ts +++ b/clients/client-ec2/src/endpoints.ts @@ -65,6 +65,10 @@ const regionHash: RegionHash = { hostname: "ec2.us-gov-east-1.amazonaws.com", tags: [], }, + { + hostname: "ec2.us-gov-east-1.api.aws", + tags: ["dualstack"], + }, ], signingRegion: "us-gov-east-1", }, @@ -74,6 +78,10 @@ const regionHash: RegionHash = { hostname: "ec2.us-gov-west-1.amazonaws.com", tags: [], }, + { + hostname: "ec2.us-gov-west-1.api.aws", + tags: ["dualstack"], + }, ], signingRegion: "us-gov-west-1", }, diff --git a/clients/client-pinpoint/src/endpoints.ts b/clients/client-pinpoint/src/endpoints.ts index 1328d1afc741..32524f9c88c4 100644 --- a/clients/client-pinpoint/src/endpoints.ts +++ b/clients/client-pinpoint/src/endpoints.ts @@ -16,6 +16,19 @@ const regionHash: RegionHash = { ], signingRegion: "us-east-1", }, + "us-east-2": { + variants: [ + { + hostname: "pinpoint.us-east-2.amazonaws.com", + tags: [], + }, + { + hostname: "pinpoint-fips.us-east-2.amazonaws.com", + tags: ["fips"], + }, + ], + signingRegion: "us-east-2", + }, "us-gov-west-1": { variants: [ { @@ -64,6 +77,7 @@ const partitionHash: PartitionHash = { "eu-west-2", "eu-west-3", "fips-us-east-1", + "fips-us-east-2", "fips-us-west-2", "me-central-1", "me-south-1", diff --git a/clients/client-timestream-write/src/endpoints.ts b/clients/client-timestream-write/src/endpoints.ts index 516fff392cb8..2cb55af42588 100644 --- a/clients/client-timestream-write/src/endpoints.ts +++ b/clients/client-timestream-write/src/endpoints.ts @@ -2,7 +2,35 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver"; import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types"; -const regionHash: RegionHash = {}; +const regionHash: RegionHash = { + "ingest-fips-us-east-1": { + variants: [ + { + hostname: "ingest.timestream-fips.us-east-1.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-1", + }, + "ingest-fips-us-east-2": { + variants: [ + { + hostname: "ingest.timestream-fips.us-east-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-east-2", + }, + "ingest-fips-us-west-2": { + variants: [ + { + hostname: "ingest.timestream-fips.us-west-2.amazonaws.com", + tags: [], + }, + ], + signingRegion: "us-west-2", + }, +}; const partitionHash: PartitionHash = { aws: { @@ -23,6 +51,9 @@ const partitionHash: PartitionHash = { "eu-west-1", "eu-west-2", "eu-west-3", + "ingest-fips-us-east-1", + "ingest-fips-us-east-2", + "ingest-fips-us-west-2", "me-central-1", "me-south-1", "sa-east-1", diff --git a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json index 55604352f6b6..d3736259a466 100644 --- a/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json +++ b/codegen/smithy-aws-typescript-codegen/src/main/resources/software/amazon/smithy/aws/typescript/codegen/endpoints.json @@ -2550,6 +2550,7 @@ "eu-west-1": {}, "eu-west-2": {}, "eu-west-3": {}, + "me-central-1": {}, "me-south-1": {}, "sa-east-1": {}, "us-east-1": {}, @@ -7680,6 +7681,35 @@ "isRegionalized": false, "partitionEndpoint": "aws-global" }, + "ingest.timestream": { + "endpoints": { + "ap-northeast-1": {}, + "ap-southeast-2": {}, + "eu-central-1": {}, + "eu-west-1": {}, + "ingest-fips-us-east-1": { + "credentialScope": { + "region": "us-east-1" + }, + "hostname": "ingest.timestream-fips.us-east-1.amazonaws.com" + }, + "ingest-fips-us-east-2": { + "credentialScope": { + "region": "us-east-2" + }, + "hostname": "ingest.timestream-fips.us-east-2.amazonaws.com" + }, + "ingest-fips-us-west-2": { + "credentialScope": { + "region": "us-west-2" + }, + "hostname": "ingest.timestream-fips.us-west-2.amazonaws.com" + }, + "us-east-1": {}, + "us-east-2": {}, + "us-west-2": {} + } + }, "inspector": { "endpoints": { "ap-northeast-1": {}, @@ -10952,6 +10982,13 @@ "deprecated": true, "hostname": "pinpoint-fips.us-east-1.amazonaws.com" }, + "fips-us-east-2": { + "credentialScope": { + "region": "us-east-2" + }, + "deprecated": true, + "hostname": "pinpoint-fips.us-east-2.amazonaws.com" + }, "fips-us-west-2": { "credentialScope": { "region": "us-west-2" @@ -10971,6 +11008,18 @@ } ] }, + "us-east-2": { + "credentialScope": { + "region": "us-east-2" + }, + "hostname": "pinpoint.us-east-2.amazonaws.com", + "variants": [ + { + "hostname": "pinpoint-fips.us-east-2.amazonaws.com", + "tags": ["fips"] + } + ] + }, "us-west-2": { "credentialScope": { "region": "us-west-2" @@ -19079,13 +19128,25 @@ "credentialScope": { "region": "us-gov-east-1" }, - "hostname": "ec2.us-gov-east-1.amazonaws.com" + "hostname": "ec2.us-gov-east-1.amazonaws.com", + "variants": [ + { + "hostname": "ec2.us-gov-east-1.api.aws", + "tags": ["dualstack"] + } + ] }, "us-gov-west-1": { "credentialScope": { "region": "us-gov-west-1" }, - "hostname": "ec2.us-gov-west-1.amazonaws.com" + "hostname": "ec2.us-gov-west-1.amazonaws.com", + "variants": [ + { + "hostname": "ec2.us-gov-west-1.api.aws", + "tags": ["dualstack"] + } + ] } } }, @@ -22526,7 +22587,8 @@ }, "synthetics": { "endpoints": { - "us-iso-east-1": {} + "us-iso-east-1": {}, + "us-iso-west-1": {} } }, "tagging": {