@Stability(value=Stable)
public static interface CfnBucket.AccessRulesProperty
extends software.amazon.jsii.JsiiSerializable
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.lightsail.*;
AccessRulesProperty accessRulesProperty = AccessRulesProperty.builder()
.allowPublicOverrides(false)
.objectAccess("objectAccess")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnBucket.AccessRulesProperty.Builder
A builder for
CfnBucket.AccessRulesProperty |
static class |
CfnBucket.AccessRulesProperty.Jsii$Proxy
An implementation for
CfnBucket.AccessRulesProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnBucket.AccessRulesProperty.Builder |
builder() |
default Object |
getAllowPublicOverrides()
A Boolean value indicating whether the access control list (ACL) permissions that are applied to individual objects override the `GetObject` option that is currently specified.
|
default String |
getObjectAccess()
Specifies the anonymous access to all objects in a bucket.
|
@Stability(value=Stable) @Nullable default Object getAllowPublicOverrides()
When this is true, you can use the PutObjectAcl Amazon S3 API operation to set individual objects to public (read-only) or private, using either the public-read ACL or the private ACL.
@Stability(value=Stable) @Nullable default String getObjectAccess()
The following options can be specified:
public - Sets all objects in the bucket to public (read-only), making them readable by everyone on the internet.
If the GetObject value is set to public , then all objects in the bucket default to public regardless of the allowPublicOverrides value.
private - Sets all objects in the bucket to private, making them readable only by you and anyone that you grant access to.
If the GetObject value is set to private , and the allowPublicOverrides value is set to true , then all objects in the bucket default to private unless they are configured with a public-read ACL. Individual objects with a public-read ACL are readable by everyone on the internet.
@Stability(value=Stable) static CfnBucket.AccessRulesProperty.Builder builder()
Copyright © 2022. All rights reserved.