Skip to content

Commit a7a494c

Browse files
author
awstools
committed
feat(client-s3-control): Minor fix to ARN validation for Lambda functions passed to S3 Batch Operations
1 parent d8e0d08 commit a7a494c

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

Diff for: clients/client-s3-control/src/models/models_0.ts

+7-3
Original file line numberDiff line numberDiff line change
@@ -2634,8 +2634,12 @@ export interface S3CopyObjectOperation {
26342634
* <li>
26352635
* <p>
26362636
* <b>Directory buckets</b> - For example, to copy objects to a directory bucket named
2637-
* <code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to
2638-
* <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>.</p>
2637+
* <code>destinationBucket</code> in the Availability Zone identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to
2638+
* <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>. A directory bucket as a destination bucket can be in Availability Zone or Local Zone. </p>
2639+
* <note>
2640+
* <p>Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web Services Region. Otherwise,
2641+
* you get an HTTP <code>400 Bad Request</code> error with the error code <code>InvalidRequest</code>.</p>
2642+
* </note>
26392643
* </li>
26402644
* </ul>
26412645
* @public
@@ -4903,7 +4907,7 @@ export interface LifecycleExpiration {
49034907
/**
49044908
* <p>Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set
49054909
* to true, the delete marker will be expired. If set to false, the policy takes no action.
4906-
* This cannot be specified with Days or Date in a Lifecycle Expiration Policy.</p>
4910+
* This cannot be specified with Days or Date in a Lifecycle Expiration Policy. To learn more about delete markers, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html">Working with delete markers</a>.</p>
49074911
* @public
49084912
*/
49094913
ExpiredObjectDeleteMarker?: boolean | undefined;

Diff for: codegen/sdk-codegen/aws-models/s3-control.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -9722,7 +9722,7 @@
97229722
"min": 1,
97239723
"max": 1024
97249724
},
9725-
"smithy.api#pattern": "^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso(b?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"
9725+
"smithy.api#pattern": "^(arn:(aws[a-zA-Z-]*)?:lambda:)?([a-z]{2}((-gov)|(-iso([a-z]?)))?-[a-z]+-\\d{1}:)?(\\d{12}:)?(function:)?([a-zA-Z0-9-_]+)(:(\\$LATEST|[a-zA-Z0-9-_]+))?$"
97269726
}
97279727
},
97289728
"com.amazonaws.s3control#GeneratedManifestEncryption": {
@@ -12966,7 +12966,7 @@
1296612966
"target": "com.amazonaws.s3control#ExpiredObjectDeleteMarker",
1296712967
"traits": {
1296812968
"smithy.api#default": false,
12969-
"smithy.api#documentation": "<p>Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set\n to true, the delete marker will be expired. If set to false, the policy takes no action.\n This cannot be specified with Days or Date in a Lifecycle Expiration Policy.</p>"
12969+
"smithy.api#documentation": "<p>Indicates whether Amazon S3 will remove a delete marker with no noncurrent versions. If set\n to true, the delete marker will be expired. If set to false, the policy takes no action.\n This cannot be specified with Days or Date in a Lifecycle Expiration Policy. To learn more about delete markers, see <a href=\"https://docs.aws.amazon.com/AmazonS3/latest/userguide/DeleteMarker.html\">Working with delete markers</a>.</p>"
1297012970
}
1297112971
}
1297212972
},
@@ -17281,7 +17281,7 @@
1728117281
"TargetResource": {
1728217282
"target": "com.amazonaws.s3control#S3RegionalOrS3ExpressBucketArnString",
1728317283
"traits": {
17284-
"smithy.api#documentation": "<p>Specifies the destination bucket\n Amazon Resource Name\n (ARN)\n for the batch copy operation.</p>\n <ul>\n <li>\n <p>\n <b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named\n <code>destinationBucket</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3:::destinationBucket</code>.</p>\n </li>\n <li>\n <p>\n <b>Directory buckets</b> - For example, to copy objects to a directory bucket named\n <code>destinationBucket</code> in the Availability Zone; identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>.</p>\n </li>\n </ul>"
17284+
"smithy.api#documentation": "<p>Specifies the destination bucket\n Amazon Resource Name\n (ARN)\n for the batch copy operation.</p>\n <ul>\n <li>\n <p>\n <b>General purpose buckets</b> - For example, to copy objects to a general purpose bucket named\n <code>destinationBucket</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3:::destinationBucket</code>.</p>\n </li>\n <li>\n <p>\n <b>Directory buckets</b> - For example, to copy objects to a directory bucket named\n <code>destinationBucket</code> in the Availability Zone identified by the AZ ID <code>usw2-az1</code>, set the <code>TargetResource</code> property to\n <code>arn:aws:s3express:<i>region</i>:<i>account_id</i>:/bucket/<i>destination_bucket_base_name</i>--<i>usw2-az1</i>--x-s3</code>. A directory bucket as a destination bucket can be in Availability Zone or Local Zone. </p>\n <note>\n <p>Copying objects across different Amazon Web Services Regions isn't supported when the source or destination bucket is in Amazon Web Services Local Zones. The source and destination buckets must have the same parent Amazon Web Services Region. Otherwise, \n you get an HTTP <code>400 Bad Request</code> error with the error code <code>InvalidRequest</code>.</p>\n </note>\n </li>\n </ul>"
1728517285
}
1728617286
},
1728717287
"CannedAccessControlList": {

0 commit comments

Comments
 (0)