ObjectOwnership

class aws_cdk.aws_s3.ObjectOwnership(value)

Bases: Enum

The ObjectOwnership of the bucket.

See:

https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html

ExampleMetadata:

infused

Example:

s3.Bucket(self, "MyBucket",
    object_ownership=s3.ObjectOwnership.OBJECT_WRITER
)

Attributes

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.