public static interface CfnBucket.OwnershipControlsProperty
S3 Object Ownership is an Amazon S3 bucket-level setting that you can use to disable access control lists (ACLs) and take ownership of every object in your bucket, simplifying access management for data stored in Amazon S3. For more information, see Controlling ownership of objects and disabling ACLs in the Amazon S3 User Guide .
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.s3.*; OwnershipControlsProperty ownershipControlsProperty = OwnershipControlsProperty.builder() .rules(List.of(OwnershipControlsRuleProperty.builder() .objectOwnership("objectOwnership") .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnBucket.OwnershipControlsProperty.Builder
A builder for
CfnBucket.OwnershipControlsProperty |
static class |
CfnBucket.OwnershipControlsProperty.Jsii$Proxy
An implementation for
CfnBucket.OwnershipControlsProperty |
Modifier and Type | Method and Description |
---|---|
static CfnBucket.OwnershipControlsProperty.Builder |
builder() |
java.lang.Object |
getRules()
Specifies the container element for Object Ownership rules.
|
java.lang.Object getRules()
static CfnBucket.OwnershipControlsProperty.Builder builder()