Class CfnBucketPropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.lightsail.CfnBucketPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnBucketPropsMixin>
- Enclosing class:
CfnBucketPropsMixin
@Stability(Stable)
public static final class CfnBucketPropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnBucketPropsMixin>
A fluent builder for
CfnBucketPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionaccessRules(CfnBucketPropsMixin.AccessRulesProperty accessRules) An object that describes the access rules for the bucket.accessRules(IResolvable accessRules) An object that describes the access rules for the bucket.bucketName(String bucketName) The name of the bucket.build()The bundle ID for the bucket (for example,small_1_0).static CfnBucketPropsMixin.Buildercreate()static CfnBucketPropsMixin.Buildercreate(CfnPropertyMixinOptions options) objectVersioning(Boolean objectVersioning) Indicates whether object versioning is enabled for the bucket.objectVersioning(IResolvable objectVersioning) Indicates whether object versioning is enabled for the bucket.readOnlyAccessAccounts(List<String> readOnlyAccessAccounts) An array of AWS account IDs that have read-only access to the bucket.resourcesReceivingAccess(List<String> resourcesReceivingAccess) An array of Lightsail instances that have access to the bucket.An array of key-value pairs to apply to this resource.
-
Method Details
-
create
@Stability(Stable) public static CfnBucketPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnBucketPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnBucketPropsMixin.Builder.
-
accessRules
An object that describes the access rules for the bucket.- Parameters:
accessRules- An object that describes the access rules for the bucket. This parameter is required.- Returns:
this- See Also:
-
accessRules
@Stability(Stable) public CfnBucketPropsMixin.Builder accessRules(CfnBucketPropsMixin.AccessRulesProperty accessRules) An object that describes the access rules for the bucket.- Parameters:
accessRules- An object that describes the access rules for the bucket. This parameter is required.- Returns:
this- See Also:
-
bucketName
The name of the bucket.- Parameters:
bucketName- The name of the bucket. This parameter is required.- Returns:
this- See Also:
-
bundleId
The bundle ID for the bucket (for example,small_1_0).A bucket bundle specifies the monthly cost, storage space, and data transfer quota for a bucket.
- Parameters:
bundleId- The bundle ID for the bucket (for example,small_1_0). This parameter is required.- Returns:
this- See Also:
-
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.
- Parameters:
objectVersioning- Indicates whether object versioning is enabled for the bucket. This parameter is required.- Returns:
this- See Also:
-
objectVersioning
@Stability(Stable) public CfnBucketPropsMixin.Builder objectVersioning(IResolvable 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.
- Parameters:
objectVersioning- Indicates whether object versioning is enabled for the bucket. This parameter is required.- Returns:
this- See Also:
-
readOnlyAccessAccounts
@Stability(Stable) public CfnBucketPropsMixin.Builder readOnlyAccessAccounts(List<String> readOnlyAccessAccounts) An array of AWS account IDs that have read-only access to the bucket.- Parameters:
readOnlyAccessAccounts- An array of AWS account IDs that have read-only access to the bucket. This parameter is required.- Returns:
this- See Also:
-
resourcesReceivingAccess
@Stability(Stable) public CfnBucketPropsMixin.Builder resourcesReceivingAccess(List<String> resourcesReceivingAccess) An array of Lightsail instances that have access to the bucket.- Parameters:
resourcesReceivingAccess- An array of Lightsail instances that have access to the bucket. This parameter is required.- Returns:
this- See Also:
-
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.- Parameters:
tags- An array of key-value pairs to apply to this resource. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnBucketPropsMixin>- Returns:
- a newly built instance of
CfnBucketPropsMixin.
-