@Stability(value=Stable) public static final class CfnBucketProps.Builder extends Object implements software.amazon.jsii.Builder<CfnBucketProps>
CfnBucketProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnBucketProps.Builder bucketName(String bucketName)
CfnBucketProps.getBucketName()bucketName - The name of the bucket. This parameter is required.this@Stability(value=Stable) public CfnBucketProps.Builder bundleId(String bundleId)
CfnBucketProps.getBundleId()bundleId - The bundle ID for the bucket (for example, `small_1_0` ). This parameter is required.
A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.this@Stability(value=Stable) public CfnBucketProps.Builder accessRules(CfnBucket.AccessRulesProperty accessRules)
CfnBucketProps.getAccessRules()accessRules - An object that describes the access rules for the bucket.this@Stability(value=Stable) public CfnBucketProps.Builder accessRules(IResolvable accessRules)
CfnBucketProps.getAccessRules()accessRules - An object that describes the access rules for the bucket.this@Stability(value=Stable) public CfnBucketProps.Builder objectVersioning(Boolean objectVersioning)
CfnBucketProps.getObjectVersioning()objectVersioning - Indicates whether object versioning is enabled for the bucket.
The following options can be configured:
Enabled - Object versioning is enabled.Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.NeverEnabled - Object versioning has never been enabled.this@Stability(value=Stable) public CfnBucketProps.Builder objectVersioning(IResolvable objectVersioning)
CfnBucketProps.getObjectVersioning()objectVersioning - Indicates whether object versioning is enabled for the bucket.
The following options can be configured:
Enabled - Object versioning is enabled.Suspended - Object versioning was previously enabled but is currently suspended. Existing object versions are retained.NeverEnabled - Object versioning has never been enabled.this@Stability(value=Stable) public CfnBucketProps.Builder readOnlyAccessAccounts(List<String> readOnlyAccessAccounts)
CfnBucketProps.getReadOnlyAccessAccounts()readOnlyAccessAccounts - An array of AWS account IDs that have read-only access to the bucket.this@Stability(value=Stable) public CfnBucketProps.Builder resourcesReceivingAccess(List<String> resourcesReceivingAccess)
CfnBucketProps.getResourcesReceivingAccess()resourcesReceivingAccess - An array of Lightsail instances that have access to the bucket.this@Stability(value=Stable) public CfnBucketProps.Builder tags(List<? extends CfnTag> tags)
CfnBucketProps.getTags()tags - An array of key-value pairs to apply to this resource.
For more information, see Tag in the AWS CloudFormation User Guide .
The
ValueofTagsis optional for Lightsail resources.
this@Stability(value=Stable) public CfnBucketProps build()
build in interface software.amazon.jsii.Builder<CfnBucketProps>CfnBucketPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.