enum ObjectOwnership
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.S3.ObjectOwnership |
![]() | software.amazon.awscdk.services.s3.ObjectOwnership |
![]() | aws_cdk.aws_s3.ObjectOwnership |
![]() | @aws-cdk/aws-s3 » ObjectOwnership |
The ObjectOwnership of the bucket.
See also: https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
Example
new s3.Bucket(this, 'MyBucket', {
objectOwnership: s3.ObjectOwnership.OBJECT_WRITER,
});
Members
Name | Description |
---|---|
BUCKET_OWNER_ENFORCED | ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket. |
BUCKET_OWNER_PREFERRED | Objects uploaded to the bucket change ownership to the bucket owner . |
OBJECT_WRITER | The uploading account will own the object. |
BUCKET_OWNER_ENFORCED
ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket.
ACLs no longer affect permissions to data in the S3 bucket. The bucket uses policies to define access control.
BUCKET_OWNER_PREFERRED
Objects uploaded to the bucket change ownership to the bucket owner .
OBJECT_WRITER
The uploading account will own the object.