Class ObjectOwnership
The ObjectOwnership of the bucket.
Inheritance
System.Object
ObjectOwnership
Namespace: Amazon.CDK.AWS.S3
Assembly: Amazon.CDK.AWS.S3.dll
Syntax (csharp)
public sealed class ObjectOwnership : Enum
Syntax (vb)
Public NotInheritable Class ObjectOwnership
Inherits
Enum
Remarks
See: https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
ExampleMetadata: infused
Examples
new Bucket(this, "MyBucket", new BucketProps {
ObjectOwnership = ObjectOwnership.OBJECT_WRITER
});
Synopsis
Fields
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. |
value__ |
Fields
BUCKET_OWNER_ENFORCED
ACLs are disabled, and the bucket owner automatically owns and has full control over every object in the bucket.
public const ObjectOwnership BUCKET_OWNER_ENFORCED
Field Value
Type | Description |
---|---|
ObjectOwnership |
Remarks
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 .
public const ObjectOwnership BUCKET_OWNER_PREFERRED
Field Value
Type | Description |
---|---|
ObjectOwnership |
OBJECT_WRITER
The uploading account will own the object.
public const ObjectOwnership OBJECT_WRITER
Field Value
Type | Description |
---|---|
ObjectOwnership |
value__
public int value__
Field Value
Type | Description |
---|---|
System.Int32 |