Skip to content

Commit 0dd68ef

Browse files
authored
feat(clients): populate variants in endpoints hashes (#2974)
1 parent 71b8cce commit 0dd68ef

File tree

297 files changed

+34382
-37
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

297 files changed

+34382
-37
lines changed

Diff for: clients/client-accessanalyzer/src/endpoints.ts

+173
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,141 @@ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolv
22
import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";
33

44
const regionHash: RegionHash = {
5+
"ca-central-1": {
6+
hostname: "access-analyzer.ca-central-1.amazonaws.com",
7+
variants: [
8+
{
9+
hostname: "access-analyzer.ca-central-1.amazonaws.com",
10+
tags: [],
11+
},
12+
{
13+
hostname: "access-analyzer-fips.ca-central-1.amazonaws.com",
14+
tags: ["fips"],
15+
},
16+
],
17+
},
518
"fips-ca-central-1": {
619
hostname: "access-analyzer-fips.ca-central-1.amazonaws.com",
20+
variants: [
21+
{
22+
hostname: "access-analyzer-fips.ca-central-1.amazonaws.com",
23+
tags: [],
24+
},
25+
],
726
signingRegion: "ca-central-1",
827
},
928
"fips-us-east-1": {
1029
hostname: "access-analyzer-fips.us-east-1.amazonaws.com",
30+
variants: [
31+
{
32+
hostname: "access-analyzer-fips.us-east-1.amazonaws.com",
33+
tags: [],
34+
},
35+
],
1136
signingRegion: "us-east-1",
1237
},
1338
"fips-us-east-2": {
1439
hostname: "access-analyzer-fips.us-east-2.amazonaws.com",
40+
variants: [
41+
{
42+
hostname: "access-analyzer-fips.us-east-2.amazonaws.com",
43+
tags: [],
44+
},
45+
],
1546
signingRegion: "us-east-2",
1647
},
1748
"fips-us-west-1": {
1849
hostname: "access-analyzer-fips.us-west-1.amazonaws.com",
50+
variants: [
51+
{
52+
hostname: "access-analyzer-fips.us-west-1.amazonaws.com",
53+
tags: [],
54+
},
55+
],
1956
signingRegion: "us-west-1",
2057
},
2158
"fips-us-west-2": {
2259
hostname: "access-analyzer-fips.us-west-2.amazonaws.com",
60+
variants: [
61+
{
62+
hostname: "access-analyzer-fips.us-west-2.amazonaws.com",
63+
tags: [],
64+
},
65+
],
2366
signingRegion: "us-west-2",
2467
},
68+
"us-east-1": {
69+
hostname: "access-analyzer.us-east-1.amazonaws.com",
70+
variants: [
71+
{
72+
hostname: "access-analyzer.us-east-1.amazonaws.com",
73+
tags: [],
74+
},
75+
{
76+
hostname: "access-analyzer-fips.us-east-1.amazonaws.com",
77+
tags: ["fips"],
78+
},
79+
],
80+
},
81+
"us-east-2": {
82+
hostname: "access-analyzer.us-east-2.amazonaws.com",
83+
variants: [
84+
{
85+
hostname: "access-analyzer.us-east-2.amazonaws.com",
86+
tags: [],
87+
},
88+
{
89+
hostname: "access-analyzer-fips.us-east-2.amazonaws.com",
90+
tags: ["fips"],
91+
},
92+
],
93+
},
2594
"us-gov-east-1": {
2695
hostname: "access-analyzer.us-gov-east-1.amazonaws.com",
96+
variants: [
97+
{
98+
hostname: "access-analyzer.us-gov-east-1.amazonaws.com",
99+
tags: [],
100+
},
101+
],
27102
signingRegion: "us-gov-east-1",
28103
},
29104
"us-gov-west-1": {
30105
hostname: "access-analyzer.us-gov-west-1.amazonaws.com",
106+
variants: [
107+
{
108+
hostname: "access-analyzer.us-gov-west-1.amazonaws.com",
109+
tags: [],
110+
},
111+
],
31112
signingRegion: "us-gov-west-1",
32113
},
114+
"us-west-1": {
115+
hostname: "access-analyzer.us-west-1.amazonaws.com",
116+
variants: [
117+
{
118+
hostname: "access-analyzer.us-west-1.amazonaws.com",
119+
tags: [],
120+
},
121+
{
122+
hostname: "access-analyzer-fips.us-west-1.amazonaws.com",
123+
tags: ["fips"],
124+
},
125+
],
126+
},
127+
"us-west-2": {
128+
hostname: "access-analyzer.us-west-2.amazonaws.com",
129+
variants: [
130+
{
131+
hostname: "access-analyzer.us-west-2.amazonaws.com",
132+
tags: [],
133+
},
134+
{
135+
hostname: "access-analyzer-fips.us-west-2.amazonaws.com",
136+
tags: ["fips"],
137+
},
138+
],
139+
},
33140
};
34141

35142
const partitionHash: PartitionHash = {
@@ -64,26 +171,92 @@ const partitionHash: PartitionHash = {
64171
],
65172
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
66173
hostname: "access-analyzer.{region}.amazonaws.com",
174+
variants: [
175+
{
176+
hostname: "access-analyzer.{region}.amazonaws.com",
177+
tags: [],
178+
},
179+
{
180+
hostname: "access-analyzer-fips.{region}.amazonaws.com",
181+
tags: ["fips"],
182+
},
183+
{
184+
hostname: "access-analyzer-fips.{region}.api.aws",
185+
tags: ["dualstack", "fips"],
186+
},
187+
{
188+
hostname: "access-analyzer.{region}.api.aws",
189+
tags: ["dualstack"],
190+
},
191+
],
67192
},
68193
"aws-cn": {
69194
regions: ["cn-north-1", "cn-northwest-1"],
70195
regionRegex: "^cn\\-\\w+\\-\\d+$",
71196
hostname: "access-analyzer.{region}.amazonaws.com.cn",
197+
variants: [
198+
{
199+
hostname: "access-analyzer.{region}.amazonaws.com.cn",
200+
tags: [],
201+
},
202+
{
203+
hostname: "access-analyzer-fips.{region}.amazonaws.com.cn",
204+
tags: ["fips"],
205+
},
206+
{
207+
hostname: "access-analyzer-fips.{region}.api.amazonwebservices.com.cn",
208+
tags: ["dualstack", "fips"],
209+
},
210+
{
211+
hostname: "access-analyzer.{region}.api.amazonwebservices.com.cn",
212+
tags: ["dualstack"],
213+
},
214+
],
72215
},
73216
"aws-iso": {
74217
regions: ["us-iso-east-1", "us-iso-west-1"],
75218
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
76219
hostname: "access-analyzer.{region}.c2s.ic.gov",
220+
variants: [
221+
{
222+
hostname: "access-analyzer.{region}.c2s.ic.gov",
223+
tags: [],
224+
},
225+
],
77226
},
78227
"aws-iso-b": {
79228
regions: ["us-isob-east-1"],
80229
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
81230
hostname: "access-analyzer.{region}.sc2s.sgov.gov",
231+
variants: [
232+
{
233+
hostname: "access-analyzer.{region}.sc2s.sgov.gov",
234+
tags: [],
235+
},
236+
],
82237
},
83238
"aws-us-gov": {
84239
regions: ["us-gov-east-1", "us-gov-west-1"],
85240
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
86241
hostname: "access-analyzer.{region}.amazonaws.com",
242+
variants: [
243+
{
244+
hostname: "access-analyzer.{region}.amazonaws.com",
245+
tags: [],
246+
},
247+
{
248+
hostname: "access-analyzer-fips.{region}.amazonaws.com",
249+
tags: ["fips"],
250+
},
251+
{
252+
hostname: "access-analyzer-fips.{region}.api.aws",
253+
tags: ["dualstack", "fips"],
254+
},
255+
{
256+
hostname: "access-analyzer.{region}.api.aws",
257+
tags: ["dualstack"],
258+
},
259+
],
87260
},
88261
};
89262

Diff for: clients/client-account/src/endpoints.ts

+80
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,22 @@ import { RegionInfoProvider, RegionInfoProviderOptions } from "@aws-sdk/types";
44
const regionHash: RegionHash = {
55
"aws-cn-global": {
66
hostname: "account.cn-northwest-1.amazonaws.com.cn",
7+
variants: [
8+
{
9+
hostname: "account.cn-northwest-1.amazonaws.com.cn",
10+
tags: [],
11+
},
12+
],
713
signingRegion: "cn-northwest-1",
814
},
915
"aws-global": {
1016
hostname: "account.us-east-1.amazonaws.com",
17+
variants: [
18+
{
19+
hostname: "account.us-east-1.amazonaws.com",
20+
tags: [],
21+
},
22+
],
1123
signingRegion: "us-east-1",
1224
},
1325
};
@@ -39,27 +51,95 @@ const partitionHash: PartitionHash = {
3951
"us-west-2",
4052
],
4153
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
54+
hostname: "account.{region}.amazonaws.com",
55+
variants: [
56+
{
57+
hostname: "account.{region}.amazonaws.com",
58+
tags: [],
59+
},
60+
{
61+
hostname: "account-fips.{region}.amazonaws.com",
62+
tags: ["fips"],
63+
},
64+
{
65+
hostname: "account-fips.{region}.api.aws",
66+
tags: ["dualstack", "fips"],
67+
},
68+
{
69+
hostname: "account.{region}.api.aws",
70+
tags: ["dualstack"],
71+
},
72+
],
4273
endpoint: "aws-global",
4374
},
4475
"aws-cn": {
4576
regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
4677
regionRegex: "^cn\\-\\w+\\-\\d+$",
78+
hostname: "account.{region}.amazonaws.com.cn",
79+
variants: [
80+
{
81+
hostname: "account.{region}.amazonaws.com.cn",
82+
tags: [],
83+
},
84+
{
85+
hostname: "account-fips.{region}.amazonaws.com.cn",
86+
tags: ["fips"],
87+
},
88+
{
89+
hostname: "account-fips.{region}.api.amazonwebservices.com.cn",
90+
tags: ["dualstack", "fips"],
91+
},
92+
{
93+
hostname: "account.{region}.api.amazonwebservices.com.cn",
94+
tags: ["dualstack"],
95+
},
96+
],
4797
endpoint: "aws-cn-global",
4898
},
4999
"aws-iso": {
50100
regions: ["us-iso-east-1", "us-iso-west-1"],
51101
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
52102
hostname: "account.{region}.c2s.ic.gov",
103+
variants: [
104+
{
105+
hostname: "account.{region}.c2s.ic.gov",
106+
tags: [],
107+
},
108+
],
53109
},
54110
"aws-iso-b": {
55111
regions: ["us-isob-east-1"],
56112
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
57113
hostname: "account.{region}.sc2s.sgov.gov",
114+
variants: [
115+
{
116+
hostname: "account.{region}.sc2s.sgov.gov",
117+
tags: [],
118+
},
119+
],
58120
},
59121
"aws-us-gov": {
60122
regions: ["us-gov-east-1", "us-gov-west-1"],
61123
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
62124
hostname: "account.{region}.amazonaws.com",
125+
variants: [
126+
{
127+
hostname: "account.{region}.amazonaws.com",
128+
tags: [],
129+
},
130+
{
131+
hostname: "account-fips.{region}.amazonaws.com",
132+
tags: ["fips"],
133+
},
134+
{
135+
hostname: "account-fips.{region}.api.aws",
136+
tags: ["dualstack", "fips"],
137+
},
138+
{
139+
hostname: "account.{region}.api.aws",
140+
tags: ["dualstack"],
141+
},
142+
],
63143
},
64144
};
65145

0 commit comments

Comments
 (0)