@Stability(value=Stable)
public static interface CfnBucket.OwnershipControlsRuleProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
OwnershipControlsRuleProperty ownershipControlsRuleProperty = OwnershipControlsRuleProperty.builder()
.objectOwnership("objectOwnership")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.OwnershipControlsRuleProperty.Builder
A builder for
CfnBucket.OwnershipControlsRuleProperty |
static class |
CfnBucket.OwnershipControlsRuleProperty.Jsii$Proxy
An implementation for
CfnBucket.OwnershipControlsRuleProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.OwnershipControlsRuleProperty.Builder |
builder() |
default String |
getObjectOwnership()
Specifies an Object Ownership rule.
|
@Stability(value=Stable) @Nullable default String getObjectOwnership()
Allowed values : BucketOwnerEnforced | ObjectWriter | BucketOwnerPreferred
@Stability(value=Stable) static CfnBucket.OwnershipControlsRuleProperty.Builder builder()
Copyright © 2022. All rights reserved.