Skip to content

Commit 21ccd56

Browse files
committed
chore(clients): populate variants in endpoints hashes
1 parent 19220a8 commit 21ccd56

File tree

290 files changed

+18093
-0
lines changed

Some content is hidden

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

290 files changed

+18093
-0
lines changed

clients/client-accessanalyzer/src/endpoints.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ 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+
variants: [
7+
{
8+
hostname: "access-analyzer-fips.ca-central-1.amazonaws.com",
9+
tags: ["fips"],
10+
},
11+
],
12+
},
513
"fips-ca-central-1": {
614
hostname: "access-analyzer-fips.ca-central-1.amazonaws.com",
715
signingRegion: "ca-central-1",
@@ -22,6 +30,22 @@ const regionHash: RegionHash = {
2230
hostname: "access-analyzer-fips.us-west-2.amazonaws.com",
2331
signingRegion: "us-west-2",
2432
},
33+
"us-east-1": {
34+
variants: [
35+
{
36+
hostname: "access-analyzer-fips.us-east-1.amazonaws.com",
37+
tags: ["fips"],
38+
},
39+
],
40+
},
41+
"us-east-2": {
42+
variants: [
43+
{
44+
hostname: "access-analyzer-fips.us-east-2.amazonaws.com",
45+
tags: ["fips"],
46+
},
47+
],
48+
},
2549
"us-gov-east-1": {
2650
hostname: "access-analyzer.us-gov-east-1.amazonaws.com",
2751
signingRegion: "us-gov-east-1",
@@ -30,6 +54,22 @@ const regionHash: RegionHash = {
3054
hostname: "access-analyzer.us-gov-west-1.amazonaws.com",
3155
signingRegion: "us-gov-west-1",
3256
},
57+
"us-west-1": {
58+
variants: [
59+
{
60+
hostname: "access-analyzer-fips.us-west-1.amazonaws.com",
61+
tags: ["fips"],
62+
},
63+
],
64+
},
65+
"us-west-2": {
66+
variants: [
67+
{
68+
hostname: "access-analyzer-fips.us-west-2.amazonaws.com",
69+
tags: ["fips"],
70+
},
71+
],
72+
},
3373
};
3474

3575
const partitionHash: PartitionHash = {
@@ -64,11 +104,39 @@ const partitionHash: PartitionHash = {
64104
],
65105
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
66106
hostname: "access-analyzer.{region}.amazonaws.com",
107+
variants: [
108+
{
109+
hostname: "access-analyzer-fips.{region}.amazonaws.com",
110+
tags: ["fips"],
111+
},
112+
{
113+
hostname: "access-analyzer-fips.{region}.api.aws",
114+
tags: ["dualstack", "fips"],
115+
},
116+
{
117+
hostname: "access-analyzer.{region}.api.aws",
118+
tags: ["dualstack"],
119+
},
120+
],
67121
},
68122
"aws-cn": {
69123
regions: ["cn-north-1", "cn-northwest-1"],
70124
regionRegex: "^cn\\-\\w+\\-\\d+$",
71125
hostname: "access-analyzer.{region}.amazonaws.com.cn",
126+
variants: [
127+
{
128+
hostname: "access-analyzer-fips.{region}.amazonaws.com.cn",
129+
tags: ["fips"],
130+
},
131+
{
132+
hostname: "access-analyzer-fips.{region}.api.amazonwebservices.com.cn",
133+
tags: ["dualstack", "fips"],
134+
},
135+
{
136+
hostname: "access-analyzer.{region}.api.amazonwebservices.com.cn",
137+
tags: ["dualstack"],
138+
},
139+
],
72140
},
73141
"aws-iso": {
74142
regions: ["us-iso-east-1", "us-iso-west-1"],
@@ -84,6 +152,20 @@ const partitionHash: PartitionHash = {
84152
regions: ["us-gov-east-1", "us-gov-west-1"],
85153
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
86154
hostname: "access-analyzer.{region}.amazonaws.com",
155+
variants: [
156+
{
157+
hostname: "access-analyzer-fips.{region}.amazonaws.com",
158+
tags: ["fips"],
159+
},
160+
{
161+
hostname: "access-analyzer-fips.{region}.api.aws",
162+
tags: ["dualstack", "fips"],
163+
},
164+
{
165+
hostname: "access-analyzer.{region}.api.aws",
166+
tags: ["dualstack"],
167+
},
168+
],
87169
},
88170
};
89171

clients/client-account/src/endpoints.ts

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,39 @@ const partitionHash: PartitionHash = {
4040
],
4141
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
4242
endpoint: "aws-global",
43+
variants: [
44+
{
45+
hostname: "account-fips.{region}.amazonaws.com",
46+
tags: ["fips"],
47+
},
48+
{
49+
hostname: "account-fips.{region}.api.aws",
50+
tags: ["dualstack", "fips"],
51+
},
52+
{
53+
hostname: "account.{region}.api.aws",
54+
tags: ["dualstack"],
55+
},
56+
],
4357
},
4458
"aws-cn": {
4559
regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
4660
regionRegex: "^cn\\-\\w+\\-\\d+$",
4761
endpoint: "aws-cn-global",
62+
variants: [
63+
{
64+
hostname: "account-fips.{region}.amazonaws.com.cn",
65+
tags: ["fips"],
66+
},
67+
{
68+
hostname: "account-fips.{region}.api.amazonwebservices.com.cn",
69+
tags: ["dualstack", "fips"],
70+
},
71+
{
72+
hostname: "account.{region}.api.amazonwebservices.com.cn",
73+
tags: ["dualstack"],
74+
},
75+
],
4876
},
4977
"aws-iso": {
5078
regions: ["us-iso-east-1", "us-iso-west-1"],
@@ -60,6 +88,20 @@ const partitionHash: PartitionHash = {
6088
regions: ["us-gov-east-1", "us-gov-west-1"],
6189
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
6290
hostname: "account.{region}.amazonaws.com",
91+
variants: [
92+
{
93+
hostname: "account-fips.{region}.amazonaws.com",
94+
tags: ["fips"],
95+
},
96+
{
97+
hostname: "account-fips.{region}.api.aws",
98+
tags: ["dualstack", "fips"],
99+
},
100+
{
101+
hostname: "account.{region}.api.aws",
102+
tags: ["dualstack"],
103+
},
104+
],
63105
},
64106
};
65107

clients/client-acm-pca/src/endpoints.ts

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,14 @@ 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+
variants: [
7+
{
8+
hostname: "acm-pca-fips.ca-central-1.amazonaws.com",
9+
tags: ["fips"],
10+
},
11+
],
12+
},
513
"fips-ca-central-1": {
614
hostname: "acm-pca-fips.ca-central-1.amazonaws.com",
715
signingRegion: "ca-central-1",
@@ -30,6 +38,54 @@ const regionHash: RegionHash = {
3038
hostname: "acm-pca-fips.us-west-2.amazonaws.com",
3139
signingRegion: "us-west-2",
3240
},
41+
"us-east-1": {
42+
variants: [
43+
{
44+
hostname: "acm-pca-fips.us-east-1.amazonaws.com",
45+
tags: ["fips"],
46+
},
47+
],
48+
},
49+
"us-east-2": {
50+
variants: [
51+
{
52+
hostname: "acm-pca-fips.us-east-2.amazonaws.com",
53+
tags: ["fips"],
54+
},
55+
],
56+
},
57+
"us-gov-east-1": {
58+
variants: [
59+
{
60+
hostname: "acm-pca.us-gov-east-1.amazonaws.com",
61+
tags: ["fips"],
62+
},
63+
],
64+
},
65+
"us-gov-west-1": {
66+
variants: [
67+
{
68+
hostname: "acm-pca.us-gov-west-1.amazonaws.com",
69+
tags: ["fips"],
70+
},
71+
],
72+
},
73+
"us-west-1": {
74+
variants: [
75+
{
76+
hostname: "acm-pca-fips.us-west-1.amazonaws.com",
77+
tags: ["fips"],
78+
},
79+
],
80+
},
81+
"us-west-2": {
82+
variants: [
83+
{
84+
hostname: "acm-pca-fips.us-west-2.amazonaws.com",
85+
tags: ["fips"],
86+
},
87+
],
88+
},
3389
};
3490

3591
const partitionHash: PartitionHash = {
@@ -64,11 +120,39 @@ const partitionHash: PartitionHash = {
64120
],
65121
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
66122
hostname: "acm-pca.{region}.amazonaws.com",
123+
variants: [
124+
{
125+
hostname: "acm-pca-fips.{region}.amazonaws.com",
126+
tags: ["fips"],
127+
},
128+
{
129+
hostname: "acm-pca-fips.{region}.api.aws",
130+
tags: ["dualstack", "fips"],
131+
},
132+
{
133+
hostname: "acm-pca.{region}.api.aws",
134+
tags: ["dualstack"],
135+
},
136+
],
67137
},
68138
"aws-cn": {
69139
regions: ["cn-north-1", "cn-northwest-1"],
70140
regionRegex: "^cn\\-\\w+\\-\\d+$",
71141
hostname: "acm-pca.{region}.amazonaws.com.cn",
142+
variants: [
143+
{
144+
hostname: "acm-pca-fips.{region}.amazonaws.com.cn",
145+
tags: ["fips"],
146+
},
147+
{
148+
hostname: "acm-pca-fips.{region}.api.amazonwebservices.com.cn",
149+
tags: ["dualstack", "fips"],
150+
},
151+
{
152+
hostname: "acm-pca.{region}.api.amazonwebservices.com.cn",
153+
tags: ["dualstack"],
154+
},
155+
],
72156
},
73157
"aws-iso": {
74158
regions: ["us-iso-east-1", "us-iso-west-1"],
@@ -84,6 +168,12 @@ const partitionHash: PartitionHash = {
84168
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
85169
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
86170
hostname: "acm-pca.{region}.amazonaws.com",
171+
variants: [
172+
{
173+
hostname: "acm-pca.{region}.amazonaws.com",
174+
tags: ["fips"],
175+
},
176+
],
87177
},
88178
};
89179

0 commit comments

Comments
 (0)