@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-13T01:13:31.631Z") public enum ObjectOwnership extends java.lang.Enum<ObjectOwnership>
Example:
Bucket.Builder.create(this, "MyBucket") .objectOwnership(ObjectOwnership.OBJECT_WRITER) .build();
https://docs.aws.amazon.com/AmazonS3/latest/dev/about-object-ownership.html
Enum Constant and 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.
|
Modifier and Type | Method and Description |
---|---|
static ObjectOwnership |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ObjectOwnership[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ObjectOwnership BUCKET_OWNER_ENFORCED
ACLs no longer affect permissions to data in the S3 bucket. The bucket uses policies to define access control.
public static final ObjectOwnership BUCKET_OWNER_PREFERRED
public static final ObjectOwnership OBJECT_WRITER
public static ObjectOwnership[] values()
for (ObjectOwnership c : ObjectOwnership.values()) System.out.println(c);
public static ObjectOwnership valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null