Skip to content

Commit 5e1d297

Browse files
authored
chore(clients): populate regionRegex in partitionHash (#2933)
1 parent 74e25df commit 5e1d297

File tree

296 files changed

+1465
-1
lines changed

Some content is hidden

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

296 files changed

+1465
-1
lines changed

clients/client-accessanalyzer/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,27 @@ const partitionHash: PartitionHash = {
6262
"us-west-1",
6363
"us-west-2",
6464
],
65+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
6566
hostname: "access-analyzer.{region}.amazonaws.com",
6667
},
6768
"aws-cn": {
6869
regions: ["cn-north-1", "cn-northwest-1"],
70+
regionRegex: "^cn\\-\\w+\\-\\d+$",
6971
hostname: "access-analyzer.{region}.amazonaws.com.cn",
7072
},
7173
"aws-iso": {
7274
regions: ["us-iso-east-1", "us-iso-west-1"],
75+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
7376
hostname: "access-analyzer.{region}.c2s.ic.gov",
7477
},
7578
"aws-iso-b": {
7679
regions: ["us-isob-east-1"],
80+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
7781
hostname: "access-analyzer.{region}.sc2s.sgov.gov",
7882
},
7983
"aws-us-gov": {
8084
regions: ["us-gov-east-1", "us-gov-west-1"],
85+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
8186
hostname: "access-analyzer.{region}.amazonaws.com",
8287
},
8388
};

clients/client-account/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,27 @@ const partitionHash: PartitionHash = {
3838
"us-west-1",
3939
"us-west-2",
4040
],
41+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
4142
endpoint: "aws-global",
4243
},
4344
"aws-cn": {
4445
regions: ["aws-cn-global", "cn-north-1", "cn-northwest-1"],
46+
regionRegex: "^cn\\-\\w+\\-\\d+$",
4547
endpoint: "aws-cn-global",
4648
},
4749
"aws-iso": {
4850
regions: ["us-iso-east-1", "us-iso-west-1"],
51+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
4952
hostname: "account.{region}.c2s.ic.gov",
5053
},
5154
"aws-iso-b": {
5255
regions: ["us-isob-east-1"],
56+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
5357
hostname: "account.{region}.sc2s.sgov.gov",
5458
},
5559
"aws-us-gov": {
5660
regions: ["us-gov-east-1", "us-gov-west-1"],
61+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
5762
hostname: "account.{region}.amazonaws.com",
5863
},
5964
};

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,27 @@ const partitionHash: PartitionHash = {
6262
"us-west-1",
6363
"us-west-2",
6464
],
65+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
6566
hostname: "acm-pca.{region}.amazonaws.com",
6667
},
6768
"aws-cn": {
6869
regions: ["cn-north-1", "cn-northwest-1"],
70+
regionRegex: "^cn\\-\\w+\\-\\d+$",
6971
hostname: "acm-pca.{region}.amazonaws.com.cn",
7072
},
7173
"aws-iso": {
7274
regions: ["us-iso-east-1", "us-iso-west-1"],
75+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
7376
hostname: "acm-pca.{region}.c2s.ic.gov",
7477
},
7578
"aws-iso-b": {
7679
regions: ["us-isob-east-1"],
80+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
7781
hostname: "acm-pca.{region}.sc2s.sgov.gov",
7882
},
7983
"aws-us-gov": {
8084
regions: ["fips-us-gov-east-1", "fips-us-gov-west-1", "us-gov-east-1", "us-gov-west-1"],
85+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
8186
hostname: "acm-pca.{region}.amazonaws.com",
8287
},
8388
};

clients/client-acm/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,22 +62,27 @@ const partitionHash: PartitionHash = {
6262
"us-west-2",
6363
"us-west-2-fips",
6464
],
65+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
6566
hostname: "acm.{region}.amazonaws.com",
6667
},
6768
"aws-cn": {
6869
regions: ["cn-north-1", "cn-northwest-1"],
70+
regionRegex: "^cn\\-\\w+\\-\\d+$",
6971
hostname: "acm.{region}.amazonaws.com.cn",
7072
},
7173
"aws-iso": {
7274
regions: ["us-iso-east-1", "us-iso-west-1"],
75+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
7376
hostname: "acm.{region}.c2s.ic.gov",
7477
},
7578
"aws-iso-b": {
7679
regions: ["us-isob-east-1"],
80+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
7781
hostname: "acm.{region}.sc2s.sgov.gov",
7882
},
7983
"aws-us-gov": {
8084
regions: ["us-gov-east-1", "us-gov-west-1"],
85+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
8186
hostname: "acm.{region}.amazonaws.com",
8287
},
8388
};

clients/client-alexa-for-business/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "a4b.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "a4b.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "a4b.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "a4b.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "a4b.{region}.amazonaws.com",
4853
},
4954
};

clients/client-amp/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "aps.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "aps.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "aps.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "aps.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "aps.{region}.amazonaws.com",
4853
},
4954
};

clients/client-amplify/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "amplify.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "amplify.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "amplify.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "amplify.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "amplify.{region}.amazonaws.com",
4853
},
4954
};

clients/client-amplifybackend/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "amplifybackend.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "amplifybackend.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "amplifybackend.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "amplifybackend.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "amplifybackend.{region}.amazonaws.com",
4853
},
4954
};

clients/client-api-gateway/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "apigateway.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "apigateway.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "apigateway.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "apigateway.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "apigateway.{region}.amazonaws.com",
4853
},
4954
};

clients/client-apigatewaymanagementapi/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "execute-api.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "execute-api.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "execute-api.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "execute-api.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "execute-api.{region}.amazonaws.com",
4853
},
4954
};

clients/client-apigatewayv2/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "apigateway.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "apigateway.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "apigateway.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "apigateway.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "apigateway.{region}.amazonaws.com",
4853
},
4954
};

clients/client-app-mesh/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "appmesh.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "appmesh.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "appmesh.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "appmesh.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "appmesh.{region}.amazonaws.com",
4853
},
4954
};

clients/client-appconfig/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "appconfig.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "appconfig.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "appconfig.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "appconfig.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "appconfig.{region}.amazonaws.com",
4853
},
4954
};

clients/client-appflow/src/endpoints.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,27 @@ const partitionHash: PartitionHash = {
2828
"us-west-1",
2929
"us-west-2",
3030
],
31+
regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
3132
hostname: "appflow.{region}.amazonaws.com",
3233
},
3334
"aws-cn": {
3435
regions: ["cn-north-1", "cn-northwest-1"],
36+
regionRegex: "^cn\\-\\w+\\-\\d+$",
3537
hostname: "appflow.{region}.amazonaws.com.cn",
3638
},
3739
"aws-iso": {
3840
regions: ["us-iso-east-1", "us-iso-west-1"],
41+
regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
3942
hostname: "appflow.{region}.c2s.ic.gov",
4043
},
4144
"aws-iso-b": {
4245
regions: ["us-isob-east-1"],
46+
regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
4347
hostname: "appflow.{region}.sc2s.sgov.gov",
4448
},
4549
"aws-us-gov": {
4650
regions: ["us-gov-east-1", "us-gov-west-1"],
51+
regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
4752
hostname: "appflow.{region}.amazonaws.com",
4853
},
4954
};

0 commit comments

Comments
 (0)