Skip to content

Commit

Permalink
chore(clients): update endpoints for clients
Browse files Browse the repository at this point in the history
  • Loading branch information
trivikr committed Oct 29, 2021
1 parent dfd717a commit 96a4e45
Show file tree
Hide file tree
Showing 25 changed files with 795 additions and 186 deletions.
16 changes: 15 additions & 1 deletion clients/client-appstream/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,18 @@ const regionHash: RegionHash = {
hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-east-1-fips": {
hostname: "appstream2-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"us-gov-west-1-fips": {
hostname: "appstream2-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-west-2-fips": {
hostname: "appstream2-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};

const partitionHash: PartitionHash = {
Expand All @@ -30,9 +42,11 @@ const partitionHash: PartitionHash = {
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-1-fips",
"us-east-2",
"us-west-1",
"us-west-2",
"us-west-2-fips",
],
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "appstream2.{region}.amazonaws.com",
Expand All @@ -53,7 +67,7 @@ const partitionHash: PartitionHash = {
hostname: "appstream2.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["fips", "us-gov-east-1", "us-gov-west-1"],
regions: ["fips", "us-gov-east-1", "us-gov-west-1", "us-gov-west-1-fips"],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "appstream2.{region}.amazonaws.com",
},
Expand Down
35 changes: 34 additions & 1 deletion clients/client-codecommit/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,38 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolv
import { RegionInfoProvider } from "@aws-sdk/types";

const regionHash: RegionHash = {
"ca-central-1-fips": {
hostname: "codecommit-fips.ca-central-1.amazonaws.com",
signingRegion: "ca-central-1",
},
fips: {
hostname: "codecommit-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-east-1-fips": {
hostname: "codecommit-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"us-east-2-fips": {
hostname: "codecommit-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"us-gov-east-1-fips": {
hostname: "codecommit-fips.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"us-gov-west-1-fips": {
hostname: "codecommit-fips.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-west-1-fips": {
hostname: "codecommit-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"us-west-2-fips": {
hostname: "codecommit-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};

const partitionHash: PartitionHash = {
Expand All @@ -20,6 +48,7 @@ const partitionHash: PartitionHash = {
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"ca-central-1-fips",
"eu-central-1",
"eu-north-1",
"eu-south-1",
Expand All @@ -30,9 +59,13 @@ const partitionHash: PartitionHash = {
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-1-fips",
"us-east-2",
"us-east-2-fips",
"us-west-1",
"us-west-1-fips",
"us-west-2",
"us-west-2-fips",
],
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "codecommit.{region}.amazonaws.com",
Expand All @@ -53,7 +86,7 @@ const partitionHash: PartitionHash = {
hostname: "codecommit.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["fips", "us-gov-east-1", "us-gov-west-1"],
regions: ["fips", "us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "codecommit.{region}.amazonaws.com",
},
Expand Down
75 changes: 74 additions & 1 deletion clients/client-compute-optimizer/src/endpoints.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,80 @@
import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
import { RegionInfoProvider } from "@aws-sdk/types";

const regionHash: RegionHash = {};
const regionHash: RegionHash = {
"ap-northeast-1": {
hostname: "compute-optimizer.ap-northeast-1.amazonaws.com",
signingRegion: "ap-northeast-1",
},
"ap-northeast-2": {
hostname: "compute-optimizer.ap-northeast-2.amazonaws.com",
signingRegion: "ap-northeast-2",
},
"ap-south-1": {
hostname: "compute-optimizer.ap-south-1.amazonaws.com",
signingRegion: "ap-south-1",
},
"ap-southeast-1": {
hostname: "compute-optimizer.ap-southeast-1.amazonaws.com",
signingRegion: "ap-southeast-1",
},
"ap-southeast-2": {
hostname: "compute-optimizer.ap-southeast-2.amazonaws.com",
signingRegion: "ap-southeast-2",
},
"ca-central-1": {
hostname: "compute-optimizer.ca-central-1.amazonaws.com",
signingRegion: "ca-central-1",
},
"cn-north-1": {
hostname: "compute-optimizer.cn-north-1.amazonaws.com.cn",
signingRegion: "cn-north-1",
},
"cn-northwest-1": {
hostname: "compute-optimizer.cn-northwest-1.amazonaws.com.cn",
signingRegion: "cn-northwest-1",
},
"eu-central-1": {
hostname: "compute-optimizer.eu-central-1.amazonaws.com",
signingRegion: "eu-central-1",
},
"eu-north-1": {
hostname: "compute-optimizer.eu-north-1.amazonaws.com",
signingRegion: "eu-north-1",
},
"eu-west-1": {
hostname: "compute-optimizer.eu-west-1.amazonaws.com",
signingRegion: "eu-west-1",
},
"eu-west-2": {
hostname: "compute-optimizer.eu-west-2.amazonaws.com",
signingRegion: "eu-west-2",
},
"eu-west-3": {
hostname: "compute-optimizer.eu-west-3.amazonaws.com",
signingRegion: "eu-west-3",
},
"sa-east-1": {
hostname: "compute-optimizer.sa-east-1.amazonaws.com",
signingRegion: "sa-east-1",
},
"us-east-1": {
hostname: "compute-optimizer.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"us-east-2": {
hostname: "compute-optimizer.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"us-west-1": {
hostname: "compute-optimizer.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"us-west-2": {
hostname: "compute-optimizer.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};

const partitionHash: PartitionHash = {
aws: {
Expand Down
43 changes: 40 additions & 3 deletions clients/client-database-migration-service/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,38 @@ const regionHash: RegionHash = {
hostname: "dms.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-east-1-fips": {
hostname: "dms-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"us-east-2-fips": {
hostname: "dms-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"us-gov-east-1-fips": {
hostname: "dms.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"us-gov-west-1-fips": {
hostname: "dms.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-iso-east-1-fips": {
hostname: "dms.us-iso-east-1.c2s.ic.gov",
signingRegion: "us-iso-east-1",
},
"us-isob-east-1-fips": {
hostname: "dms.us-isob-east-1.sc2s.sgov.gov",
signingRegion: "us-isob-east-1",
},
"us-west-1-fips": {
hostname: "dms-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"us-west-2-fips": {
hostname: "dms-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};

const partitionHash: PartitionHash = {
Expand All @@ -20,6 +52,7 @@ const partitionHash: PartitionHash = {
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"dms",
"dms-fips",
"eu-central-1",
"eu-north-1",
Expand All @@ -30,9 +63,13 @@ const partitionHash: PartitionHash = {
"me-south-1",
"sa-east-1",
"us-east-1",
"us-east-1-fips",
"us-east-2",
"us-east-2-fips",
"us-west-1",
"us-west-1-fips",
"us-west-2",
"us-west-2-fips",
],
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "dms.{region}.amazonaws.com",
Expand All @@ -43,17 +80,17 @@ const partitionHash: PartitionHash = {
hostname: "dms.{region}.amazonaws.com.cn",
},
"aws-iso": {
regions: ["dms-fips", "us-iso-east-1", "us-iso-west-1"],
regions: ["dms", "dms-fips", "us-iso-east-1", "us-iso-east-1-fips", "us-iso-west-1"],
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
hostname: "dms.{region}.c2s.ic.gov",
},
"aws-iso-b": {
regions: ["dms-fips", "us-isob-east-1"],
regions: ["dms", "dms-fips", "us-isob-east-1", "us-isob-east-1-fips"],
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
hostname: "dms.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["dms-fips", "us-gov-east-1", "us-gov-west-1"],
regions: ["dms", "dms-fips", "us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "dms.{region}.amazonaws.com",
},
Expand Down
47 changes: 46 additions & 1 deletion clients/client-docdb/src/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolv
import { RegionInfoProvider } from "@aws-sdk/types";

const regionHash: RegionHash = {
"ca-central-1-fips": {
hostname: "rds-fips.ca-central-1.amazonaws.com",
signingRegion: "ca-central-1",
},
"rds-fips.ca-central-1": {
hostname: "rds-fips.ca-central-1.amazonaws.com",
signingRegion: "ca-central-1",
Expand Down Expand Up @@ -30,6 +34,30 @@ const regionHash: RegionHash = {
hostname: "rds.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-east-1-fips": {
hostname: "rds-fips.us-east-1.amazonaws.com",
signingRegion: "us-east-1",
},
"us-east-2-fips": {
hostname: "rds-fips.us-east-2.amazonaws.com",
signingRegion: "us-east-2",
},
"us-gov-east-1-fips": {
hostname: "rds.us-gov-east-1.amazonaws.com",
signingRegion: "us-gov-east-1",
},
"us-gov-west-1-fips": {
hostname: "rds.us-gov-west-1.amazonaws.com",
signingRegion: "us-gov-west-1",
},
"us-west-1-fips": {
hostname: "rds-fips.us-west-1.amazonaws.com",
signingRegion: "us-west-1",
},
"us-west-2-fips": {
hostname: "rds-fips.us-west-2.amazonaws.com",
signingRegion: "us-west-2",
},
};

const partitionHash: PartitionHash = {
Expand All @@ -44,6 +72,7 @@ const partitionHash: PartitionHash = {
"ap-southeast-1",
"ap-southeast-2",
"ca-central-1",
"ca-central-1-fips",
"eu-central-1",
"eu-north-1",
"eu-south-1",
Expand All @@ -56,11 +85,20 @@ const partitionHash: PartitionHash = {
"rds-fips.us-east-2",
"rds-fips.us-west-1",
"rds-fips.us-west-2",
"rds.ca-central-1",
"rds.us-east-1",
"rds.us-east-2",
"rds.us-west-1",
"rds.us-west-2",
"sa-east-1",
"us-east-1",
"us-east-1-fips",
"us-east-2",
"us-east-2-fips",
"us-west-1",
"us-west-1-fips",
"us-west-2",
"us-west-2-fips",
],
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
hostname: "rds.{region}.amazonaws.com",
Expand All @@ -81,7 +119,14 @@ const partitionHash: PartitionHash = {
hostname: "rds.{region}.sc2s.sgov.gov",
},
"aws-us-gov": {
regions: ["rds.us-gov-east-1", "rds.us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
regions: [
"rds.us-gov-east-1",
"rds.us-gov-west-1",
"us-gov-east-1",
"us-gov-east-1-fips",
"us-gov-west-1",
"us-gov-west-1-fips",
],
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
hostname: "rds.{region}.amazonaws.com",
},
Expand Down
Loading

0 comments on commit 96a4e45

Please sign in to comment.