Skip to content

Commit

Permalink
chore(cliet-s3): remove hostnames which are not explicitly defined in…
Browse files Browse the repository at this point in the history
… source
  • Loading branch information
trivikr committed Aug 23, 2021
1 parent 2cc3d39 commit fc34447
Showing 1 changed file with 1 addition and 37 deletions.
38 changes: 1 addition & 37 deletions clients/client-s3/endpoints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,6 @@ const regionHash: { [key: string]: Partial<RegionInfo> } = {
"accesspoint-ca-central-1": {
hostname: "s3-accesspoint.ca-central-1.amazonaws.com",
},
"accesspoint-cn-north-1": {
hostname: "s3-accesspoint.cn-north-1.amazonaws.com.cn",
},
"accesspoint-cn-northwest-1": {
hostname: "s3-accesspoint.cn-northwest-1.amazonaws.com.cn",
},
"accesspoint-eu-central-1": {
hostname: "s3-accesspoint.eu-central-1.amazonaws.com",
},
Expand Down Expand Up @@ -76,18 +70,9 @@ const regionHash: { [key: string]: Partial<RegionInfo> } = {
"accesspoint-us-west-2": {
hostname: "s3-accesspoint.us-west-2.amazonaws.com",
},
"af-south-1": { hostname: "s3.af-south-1.amazonaws.com" },
"ap-east-1": { hostname: "s3.ap-east-1.amazonaws.com" },
"ap-northeast-1": {
hostname: "s3.ap-northeast-1.amazonaws.com",
},
"ap-northeast-2": {
hostname: "s3.ap-northeast-2.amazonaws.com",
},
"ap-northeast-3": {
hostname: "s3.ap-northeast-3.amazonaws.com",
},
"ap-south-1": { hostname: "s3.ap-south-1.amazonaws.com" },
"ap-southeast-1": {
hostname: "s3.ap-southeast-1.amazonaws.com",
},
Expand All @@ -96,7 +81,6 @@ const regionHash: { [key: string]: Partial<RegionInfo> } = {
},
"aws-global": {
hostname: "s3.amazonaws.com",

signingRegion: "us-east-1",
},
"cn-north-1": {
Expand All @@ -105,17 +89,7 @@ const regionHash: { [key: string]: Partial<RegionInfo> } = {
"cn-northwest-1": {
hostname: "s3.cn-northwest-1.amazonaws.com.cn",
},
"ca-central-1": {
hostname: "s3.ca-central-1.amazonaws.com",
},
"eu-central-1": {
hostname: "s3.eu-central-1.amazonaws.com",
},
"eu-north-1": { hostname: "s3.eu-north-1.amazonaws.com" },
"eu-south-1": { hostname: "s3.eu-south-1.amazonaws.com" },
"eu-west-1": { hostname: "s3.eu-west-1.amazonaws.com" },
"eu-west-2": { hostname: "s3.eu-west-2.amazonaws.com" },
"eu-west-3": { hostname: "s3.eu-west-3.amazonaws.com" },
"fips-accesspoint-ca-central-1": {
hostname: "s3-accesspoint-fips.ca-central-1.amazonaws.com",
},
Expand All @@ -139,30 +113,20 @@ const regionHash: { [key: string]: Partial<RegionInfo> } = {
},
"fips-us-gov-west-1": {
hostname: "s3-fips.us-gov-west-1.amazonaws.com",

signingRegion: "us-gov-west-1",
},
"me-south-1": { hostname: "s3.me-south-1.amazonaws.com" },
"sa-east-1": { hostname: "s3.sa-east-1.amazonaws.com" },
"s3-external-1": {
hostname: "s3-external-1.amazonaws.com",

signingRegion: "us-east-1",
},
"sa-east-1": { hostname: "s3.sa-east-1.amazonaws.com" },
"us-east-1": { hostname: "s3.us-east-1.amazonaws.com" },
"us-east-2": { hostname: "s3.us-east-2.amazonaws.com" },
"us-gov-east-1": {
hostname: "s3.us-gov-east-1.amazonaws.com",
},
"us-gov-west-1": {
hostname: "s3.us-gov-west-1.amazonaws.com",
},
"us-iso-east-1": {
hostname: "s3.us-iso-east-1.c2s.ic.gov",
},
"us-isob-east-1": {
hostname: "s3.us-isob-east-1.sc2s.sgov.gov",
},
"us-west-1": { hostname: "s3.us-west-1.amazonaws.com" },
"us-west-2": { hostname: "s3.us-west-2.amazonaws.com" },
};
Expand Down

0 comments on commit fc34447

Please sign in to comment.