Skip to content

Commit 229167d

Browse files
author
awstools
committed
feat(client-s3): Updated list of the valid AWS Region values for the LocationConstraint parameter for general purpose buckets.
1 parent 1816b91 commit 229167d

4 files changed

Lines changed: 37 additions & 2 deletions

File tree

clients/client-s3/src/commands/CreateBucketCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ export interface CreateBucketCommandOutput extends CreateBucketOutput, __Metadat
189189
* ACL: "private" || "public-read" || "public-read-write" || "authenticated-read",
190190
* Bucket: "STRING_VALUE", // required
191191
* CreateBucketConfiguration: { // CreateBucketConfiguration
192-
* LocationConstraint: "af-south-1" || "ap-east-1" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "ap-south-1" || "ap-south-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-southeast-4" || "ap-southeast-5" || "ca-central-1" || "cn-north-1" || "cn-northwest-1" || "EU" || "eu-central-1" || "eu-central-2" || "eu-north-1" || "eu-south-1" || "eu-south-2" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "il-central-1" || "me-central-1" || "me-south-1" || "sa-east-1" || "us-east-2" || "us-gov-east-1" || "us-gov-west-1" || "us-west-1" || "us-west-2",
192+
* LocationConstraint: "af-south-1" || "ap-east-1" || "ap-east-2" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "ap-south-1" || "ap-south-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-southeast-4" || "ap-southeast-5" || "ap-southeast-6" || "ap-southeast-7" || "ca-central-1" || "ca-west-1" || "cn-north-1" || "cn-northwest-1" || "EU" || "eu-central-1" || "eu-central-2" || "eu-north-1" || "eu-south-1" || "eu-south-2" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "il-central-1" || "me-central-1" || "me-south-1" || "mx-central-1" || "sa-east-1" || "us-east-2" || "us-gov-east-1" || "us-gov-west-1" || "us-west-1" || "us-west-2",
193193
* Location: { // LocationInfo
194194
* Type: "AvailabilityZone" || "LocalZone",
195195
* Name: "STRING_VALUE",

clients/client-s3/src/commands/GetBucketLocationCommand.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export interface GetBucketLocationCommandOutput extends GetBucketLocationOutput,
8585
* const command = new GetBucketLocationCommand(input);
8686
* const response = await client.send(command);
8787
* // { // GetBucketLocationOutput
88-
* // LocationConstraint: "af-south-1" || "ap-east-1" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "ap-south-1" || "ap-south-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-southeast-4" || "ap-southeast-5" || "ca-central-1" || "cn-north-1" || "cn-northwest-1" || "EU" || "eu-central-1" || "eu-central-2" || "eu-north-1" || "eu-south-1" || "eu-south-2" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "il-central-1" || "me-central-1" || "me-south-1" || "sa-east-1" || "us-east-2" || "us-gov-east-1" || "us-gov-west-1" || "us-west-1" || "us-west-2",
88+
* // LocationConstraint: "af-south-1" || "ap-east-1" || "ap-east-2" || "ap-northeast-1" || "ap-northeast-2" || "ap-northeast-3" || "ap-south-1" || "ap-south-2" || "ap-southeast-1" || "ap-southeast-2" || "ap-southeast-3" || "ap-southeast-4" || "ap-southeast-5" || "ap-southeast-6" || "ap-southeast-7" || "ca-central-1" || "ca-west-1" || "cn-north-1" || "cn-northwest-1" || "EU" || "eu-central-1" || "eu-central-2" || "eu-north-1" || "eu-south-1" || "eu-south-2" || "eu-west-1" || "eu-west-2" || "eu-west-3" || "il-central-1" || "me-central-1" || "me-south-1" || "mx-central-1" || "sa-east-1" || "us-east-2" || "us-gov-east-1" || "us-gov-west-1" || "us-west-1" || "us-west-2",
8989
* // };
9090
*
9191
* ```

clients/client-s3/src/models/enums.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,7 @@ export const BucketLocationConstraint = {
303303
EU: "EU",
304304
af_south_1: "af-south-1",
305305
ap_east_1: "ap-east-1",
306+
ap_east_2: "ap-east-2",
306307
ap_northeast_1: "ap-northeast-1",
307308
ap_northeast_2: "ap-northeast-2",
308309
ap_northeast_3: "ap-northeast-3",
@@ -313,7 +314,10 @@ export const BucketLocationConstraint = {
313314
ap_southeast_3: "ap-southeast-3",
314315
ap_southeast_4: "ap-southeast-4",
315316
ap_southeast_5: "ap-southeast-5",
317+
ap_southeast_6: "ap-southeast-6",
318+
ap_southeast_7: "ap-southeast-7",
316319
ca_central_1: "ca-central-1",
320+
ca_west_1: "ca-west-1",
317321
cn_north_1: "cn-north-1",
318322
cn_northwest_1: "cn-northwest-1",
319323
eu_central_1: "eu-central-1",
@@ -327,6 +331,7 @@ export const BucketLocationConstraint = {
327331
il_central_1: "il-central-1",
328332
me_central_1: "me-central-1",
329333
me_south_1: "me-south-1",
334+
mx_central_1: "mx-central-1",
330335
sa_east_1: "sa-east-1",
331336
us_east_2: "us-east-2",
332337
us_gov_east_1: "us-gov-east-1",

codegen/sdk-codegen/aws-models/s3.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24772,6 +24772,12 @@
2477224772
"smithy.api#enumValue": "ap-east-1"
2477324773
}
2477424774
},
24775+
"ap_east_2": {
24776+
"target": "smithy.api#Unit",
24777+
"traits": {
24778+
"smithy.api#enumValue": "ap-east-2"
24779+
}
24780+
},
2477524781
"ap_northeast_1": {
2477624782
"target": "smithy.api#Unit",
2477724783
"traits": {
@@ -24832,12 +24838,30 @@
2483224838
"smithy.api#enumValue": "ap-southeast-5"
2483324839
}
2483424840
},
24841+
"ap_southeast_6": {
24842+
"target": "smithy.api#Unit",
24843+
"traits": {
24844+
"smithy.api#enumValue": "ap-southeast-6"
24845+
}
24846+
},
24847+
"ap_southeast_7": {
24848+
"target": "smithy.api#Unit",
24849+
"traits": {
24850+
"smithy.api#enumValue": "ap-southeast-7"
24851+
}
24852+
},
2483524853
"ca_central_1": {
2483624854
"target": "smithy.api#Unit",
2483724855
"traits": {
2483824856
"smithy.api#enumValue": "ca-central-1"
2483924857
}
2484024858
},
24859+
"ca_west_1": {
24860+
"target": "smithy.api#Unit",
24861+
"traits": {
24862+
"smithy.api#enumValue": "ca-west-1"
24863+
}
24864+
},
2484124865
"cn_north_1": {
2484224866
"target": "smithy.api#Unit",
2484324867
"traits": {
@@ -24922,6 +24946,12 @@
2492224946
"smithy.api#enumValue": "me-south-1"
2492324947
}
2492424948
},
24949+
"mx_central_1": {
24950+
"target": "smithy.api#Unit",
24951+
"traits": {
24952+
"smithy.api#enumValue": "mx-central-1"
24953+
}
24954+
},
2492524955
"sa_east_1": {
2492624956
"target": "smithy.api#Unit",
2492724957
"traits": {

0 commit comments

Comments
 (0)