Skip to content

Commit

Permalink
feat(clients): update endpoint resolution as of 05/12/2021 (#2398)
Browse files Browse the repository at this point in the history
  • Loading branch information
AllanZhengYP authored May 17, 2021
1 parent b157173 commit 17afcbb
Show file tree
Hide file tree
Showing 272 changed files with 2,692 additions and 13 deletions.
7 changes: 7 additions & 0 deletions clients/client-accessanalyzer/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "access-analyzer.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "access-analyzer.ap-south-1.amazonaws.com",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-acm-pca/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "acm-pca.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "acm-pca.ap-south-1.amazonaws.com",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-acm/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "acm.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "acm.ap-south-1.amazonaws.com",
Expand Down
1 change: 1 addition & 0 deletions clients/client-alexa-for-business/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-amp/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-amplify/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
73 changes: 73 additions & 0 deletions clients/client-amplifybackend/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand All @@ -39,6 +40,78 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
let regionInfo: RegionInfo | undefined = undefined;
switch (region) {
// First, try to match exact region names.
case "ap-northeast-1":
regionInfo = {
hostname: "amplifybackend.ap-northeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-northeast-2":
regionInfo = {
hostname: "amplifybackend.ap-northeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "amplifybackend.ap-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-1":
regionInfo = {
hostname: "amplifybackend.ap-southeast-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-southeast-2":
regionInfo = {
hostname: "amplifybackend.ap-southeast-2.amazonaws.com",
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "amplifybackend.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "amplifybackend.eu-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-1":
regionInfo = {
hostname: "amplifybackend.eu-west-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-west-2":
regionInfo = {
hostname: "amplifybackend.eu-west-2.amazonaws.com",
partition: "aws",
};
break;
case "us-east-1":
regionInfo = {
hostname: "amplifybackend.us-east-1.amazonaws.com",
partition: "aws",
};
break;
case "us-east-2":
regionInfo = {
hostname: "amplifybackend.us-east-2.amazonaws.com",
partition: "aws",
};
break;
case "us-west-2":
regionInfo = {
hostname: "amplifybackend.us-west-2.amazonaws.com",
partition: "aws",
};
break;
// Next, try to match partition endpoints.
default:
if (AWS_REGIONS.has(region)) {
Expand Down
7 changes: 7 additions & 0 deletions clients/client-api-gateway/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "apigateway.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "apigateway.ap-south-1.amazonaws.com",
Expand Down
1 change: 1 addition & 0 deletions clients/client-apigatewaymanagementapi/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-apigatewayv2/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "apigateway.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "apigateway.ap-south-1.amazonaws.com",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-app-mesh/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand All @@ -39,6 +40,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
let regionInfo: RegionInfo | undefined = undefined;
switch (region) {
// First, try to match exact region names.
case "af-south-1":
regionInfo = {
hostname: "appmesh.af-south-1.amazonaws.com",
partition: "aws",
};
break;
case "ap-east-1":
regionInfo = {
hostname: "appmesh.ap-east-1.amazonaws.com",
Expand Down
1 change: 1 addition & 0 deletions clients/client-appconfig/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-appflow/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-appintegrations/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -57,6 +58,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ca-central-1":
regionInfo = {
hostname: "app-integrations.ca-central-1.amazonaws.com",
partition: "aws",
};
break;
case "eu-central-1":
regionInfo = {
hostname: "app-integrations.eu-central-1.amazonaws.com",
Expand Down
7 changes: 7 additions & 0 deletions clients/client-application-auto-scaling/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -63,6 +64,12 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "ap-northeast-3":
regionInfo = {
hostname: "application-autoscaling.ap-northeast-3.amazonaws.com",
partition: "aws",
};
break;
case "ap-south-1":
regionInfo = {
hostname: "application-autoscaling.ap-south-1.amazonaws.com",
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-discovery-service/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-application-insights/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-appstream/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
1 change: 1 addition & 0 deletions clients/client-appsync/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
29 changes: 29 additions & 0 deletions clients/client-athena/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down Expand Up @@ -135,6 +136,20 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
partition: "aws",
};
break;
case "fips-us-east-1":
regionInfo = {
hostname: "athena-fips.us-east-1.amazonaws.com",
partition: "aws",
signingRegion: "us-east-1",
};
break;
case "fips-us-east-2":
regionInfo = {
hostname: "athena-fips.us-east-2.amazonaws.com",
partition: "aws",
signingRegion: "us-east-2",
};
break;
case "fips-us-gov-east-1":
regionInfo = {
hostname: "athena-fips.us-gov-east-1.amazonaws.com",
Expand All @@ -149,6 +164,20 @@ export const defaultRegionInfoProvider: RegionInfoProvider = (region: string, op
signingRegion: "us-gov-west-1",
};
break;
case "fips-us-west-1":
regionInfo = {
hostname: "athena-fips.us-west-1.amazonaws.com",
partition: "aws",
signingRegion: "us-west-1",
};
break;
case "fips-us-west-2":
regionInfo = {
hostname: "athena-fips.us-west-2.amazonaws.com",
partition: "aws",
signingRegion: "us-west-2",
};
break;
case "me-south-1":
regionInfo = {
hostname: "athena.me-south-1.amazonaws.com",
Expand Down
1 change: 1 addition & 0 deletions clients/client-auditmanager/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const AWS_REGIONS = new Set([
"ap-east-1",
"ap-northeast-1",
"ap-northeast-2",
"ap-northeast-3",
"ap-south-1",
"ap-southeast-1",
"ap-southeast-2",
Expand Down
Loading

0 comments on commit 17afcbb

Please sign in to comment.