Skip to content

Commit 4e7d480

Browse files
authored
chore(s3): update default object ownership docstring (#31152)
### Issue # (if applicable) n/a ### Reason for this change In April 2023, S3 changed the defaults for S3 buckets so Object Ownership is set to the Bucket owner enforced setting and all ACLs are disabled (see [blog](https://aws.amazon.com/about-aws/whats-new/2022/12/amazon-s3-automatically-enable-block-public-access-disable-access-control-lists-buckets-april-2023/)). See current docs as well: https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html ### Description of changes Update `objectOwnership` docstring to reflect the updated default setting. No change in CDK behaviour. ### Description of how you validated changes n/a ### Checklist - [x] My code adheres to the [CONTRIBUTING GUIDE](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) and [DESIGN GUIDELINES](https://github.com/aws/aws-cdk/blob/main/docs/DESIGN_GUIDELINES.md) ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent 1eb1ea6 commit 4e7d480

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/aws-cdk-lib/aws-s3/lib/bucket.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1636,7 +1636,8 @@ export interface BucketProps {
16361636
*
16371637
* @see https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
16381638
*
1639-
* @default - No ObjectOwnership configuration, uploading account will own the object.
1639+
* @default - No ObjectOwnership configuration. By default, Amazon S3 sets Object Ownership to `Bucket owner enforced`.
1640+
* This means ACLs are disabled and the bucket owner will own every object.
16401641
*
16411642
*/
16421643
readonly objectOwnership?: ObjectOwnership;

0 commit comments

Comments
 (0)