@Stability(value=Stable) public static final class CfnBucket.AccessRulesProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnBucket.AccessRulesProperty>
CfnBucket.AccessRulesProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnBucket.AccessRulesProperty.Builder |
allowPublicOverrides(Boolean allowPublicOverrides)
Sets the value of
CfnBucket.AccessRulesProperty.getAllowPublicOverrides() |
CfnBucket.AccessRulesProperty.Builder |
allowPublicOverrides(IResolvable allowPublicOverrides)
Sets the value of
CfnBucket.AccessRulesProperty.getAllowPublicOverrides() |
CfnBucket.AccessRulesProperty |
build()
Builds the configured instance.
|
CfnBucket.AccessRulesProperty.Builder |
objectAccess(String objectAccess)
Sets the value of
CfnBucket.AccessRulesProperty.getObjectAccess() |
@Stability(value=Stable) public CfnBucket.AccessRulesProperty.Builder allowPublicOverrides(Boolean allowPublicOverrides)
CfnBucket.AccessRulesProperty.getAllowPublicOverrides()allowPublicOverrides - 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.
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.this@Stability(value=Stable) public CfnBucket.AccessRulesProperty.Builder allowPublicOverrides(IResolvable allowPublicOverrides)
CfnBucket.AccessRulesProperty.getAllowPublicOverrides()allowPublicOverrides - 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.
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.this@Stability(value=Stable) public CfnBucket.AccessRulesProperty.Builder objectAccess(String objectAccess)
CfnBucket.AccessRulesProperty.getObjectAccess()objectAccess - Specifies the anonymous access to all objects in a bucket.
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.
this@Stability(value=Stable) public CfnBucket.AccessRulesProperty build()
build in interface software.amazon.jsii.Builder<CfnBucket.AccessRulesProperty>CfnBucket.AccessRulesPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.