Skip to content

Commit

Permalink
docs(s3): better explain behavior of BUCKET_OWNER_PREFERRED (aws#28867)
Browse files Browse the repository at this point in the history
Update the enum ObjectOwnership docs to be more explicit. As mentioned [here](aws#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](aws#28866) before entering this PR/Issue.



Closes aws#28866 .


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
jramacha authored Jan 25, 2024
1 parent a5a8855 commit efccfcb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/aws-cdk-lib/aws-s3/lib/bucket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1287,7 +1287,9 @@ export enum ObjectOwnership {
*/
BUCKET_OWNER_ENFORCED = 'BucketOwnerEnforced',
/**
* Objects uploaded to the bucket change ownership to the bucket owner .
* The bucket owner will own the object if the object is uploaded with
* the bucket-owner-full-control canned ACL. Without this setting and
* canned ACL, the object is uploaded and remains owned by the uploading account.
*/
BUCKET_OWNER_PREFERRED = 'BucketOwnerPreferred',
/**
Expand Down

0 comments on commit efccfcb

Please sign in to comment.