Skip to content

Commit efccfcb

Browse files
authored
docs(s3): better explain behavior of BUCKET_OWNER_PREFERRED (#28867)
Update the enum ObjectOwnership docs to be more explicit. As mentioned [here](#28866) the documentation is not explicit but in S3 [documentation](https://docs.aws.amazon.com/AmazonS3/latest/userguide/about-object-ownership.html) its explicit. We had discussed with Kaizen in [issue](#28866) before entering this PR/Issue. Closes #28866 . ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
1 parent a5a8855 commit efccfcb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

+3-1
Original file line numberDiff line numberDiff line change
@@ -1287,7 +1287,9 @@ export enum ObjectOwnership {
12871287
*/
12881288
BUCKET_OWNER_ENFORCED = 'BucketOwnerEnforced',
12891289
/**
1290-
* Objects uploaded to the bucket change ownership to the bucket owner .
1290+
* The bucket owner will own the object if the object is uploaded with
1291+
* the bucket-owner-full-control canned ACL. Without this setting and
1292+
* canned ACL, the object is uploaded and remains owned by the uploading account.
12911293
*/
12921294
BUCKET_OWNER_PREFERRED = 'BucketOwnerPreferred',
12931295
/**

0 commit comments

Comments
 (0)