Class CfnDirectoryBucketPropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucketPropsMixin>
- Enclosing class:
CfnDirectoryBucketPropsMixin
CfnDirectoryBucketPropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbucketEncryption(CfnDirectoryBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).bucketEncryption(IResolvable bucketEncryption) Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).bucketName(String bucketName) A name for the bucket.build()create()create(CfnPropertyMixinOptions options) dataRedundancy(String dataRedundancy) The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.lifecycleConfiguration(CfnDirectoryBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Container for lifecycle rules.lifecycleConfiguration(IResolvable lifecycleConfiguration) Container for lifecycle rules.locationName(String locationName) The name of the location where the bucket will be created.An array of tags that you can apply to the S3 directory bucket.
-
Method Details
-
create
@Stability(Stable) public static CfnDirectoryBucketPropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnDirectoryBucketPropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnDirectoryBucketPropsMixin.Builder.
-
bucketEncryption
@Stability(Stable) public CfnDirectoryBucketPropsMixin.Builder bucketEncryption(IResolvable bucketEncryption) Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- Parameters:
bucketEncryption- Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). This parameter is required.- Returns:
this- See Also:
-
bucketEncryption
@Stability(Stable) public CfnDirectoryBucketPropsMixin.Builder bucketEncryption(CfnDirectoryBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS).For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .
- Parameters:
bucketEncryption- Specifies default encryption for a bucket using server-side encryption with Amazon S3 managed keys (SSE-S3) or AWS KMS keys (SSE-KMS). This parameter is required.- Returns:
this- See Also:
-
bucketName
A name for the bucket.The bucket name must contain only lowercase letters, numbers, and hyphens (-). A directory bucket name must be unique in the chosen Zone (Availability Zone or Local Zone). The bucket name must also follow the format
*bucket_base_name* -- *zone_id* --x-s3(for example,*bucket_base_name* -- *usw2-az1* --x-s3). If you don't specify a name, AWS CloudFormation generates a unique ID and uses that ID for the bucket name. For information about bucket naming restrictions, see Directory bucket naming rules in the Amazon S3 User Guide .If you specify a name, you can't perform updates that require replacement of this resource. You can perform updates that require no or some interruption. If you need to replace the resource, specify a new name.
- Parameters:
bucketName- A name for the bucket. This parameter is required.- Returns:
this- See Also:
-
dataRedundancy
@Stability(Stable) public CfnDirectoryBucketPropsMixin.Builder dataRedundancy(String dataRedundancy) The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.- Parameters:
dataRedundancy- The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket. This parameter is required.- Returns:
this- See Also:
-
lifecycleConfiguration
@Stability(Stable) public CfnDirectoryBucketPropsMixin.Builder lifecycleConfiguration(IResolvable lifecycleConfiguration) Container for lifecycle rules. You can add as many as 1000 rules.For more information see, Creating and managing a lifecycle configuration for directory buckets in the Amazon S3 User Guide .
- Parameters:
lifecycleConfiguration- Container for lifecycle rules. You can add as many as 1000 rules. This parameter is required.- Returns:
this- See Also:
-
lifecycleConfiguration
@Stability(Stable) public CfnDirectoryBucketPropsMixin.Builder lifecycleConfiguration(CfnDirectoryBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Container for lifecycle rules. You can add as many as 1000 rules.For more information see, Creating and managing a lifecycle configuration for directory buckets in the Amazon S3 User Guide .
- Parameters:
lifecycleConfiguration- Container for lifecycle rules. You can add as many as 1000 rules. This parameter is required.- Returns:
this- See Also:
-
locationName
The name of the location where the bucket will be created.For directory buckets, the name of the location is the Zone ID of the Availability Zone (AZ) or Local Zone (LZ) where the bucket will be created. An example AZ ID value is
usw2-az1.- Parameters:
locationName- The name of the location where the bucket will be created. This parameter is required.- Returns:
this- See Also:
-
tags
An array of tags that you can apply to the S3 directory bucket.Tags are key-value pairs of metadata used to categorize and organize your buckets, track costs, and control access. For more information, see Using tags with directory buckets .
- Parameters:
tags- An array of tags that you can apply to the S3 directory bucket. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectoryBucketPropsMixin>- Returns:
- a newly built instance of
CfnDirectoryBucketPropsMixin.
-