Class CfnDirectoryBucketMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.s3express.CfnDirectoryBucketMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucketMixinProps>
- Enclosing interface:
CfnDirectoryBucketMixinProps
@Stability(Stable)
public static final class CfnDirectoryBucketMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnDirectoryBucketMixinProps>
A builder for
CfnDirectoryBucketMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbucketEncryption(CfnDirectoryBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Sets the value ofCfnDirectoryBucketMixinProps.getBucketEncryption()bucketEncryption(IResolvable bucketEncryption) Sets the value ofCfnDirectoryBucketMixinProps.getBucketEncryption()bucketName(String bucketName) Sets the value ofCfnDirectoryBucketMixinProps.getBucketName()build()Builds the configured instance.dataRedundancy(String dataRedundancy) Sets the value ofCfnDirectoryBucketMixinProps.getDataRedundancy()lifecycleConfiguration(CfnDirectoryBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Sets the value ofCfnDirectoryBucketMixinProps.getLifecycleConfiguration()lifecycleConfiguration(IResolvable lifecycleConfiguration) Sets the value ofCfnDirectoryBucketMixinProps.getLifecycleConfiguration()locationName(String locationName) Sets the value ofCfnDirectoryBucketMixinProps.getLocationName()Sets the value ofCfnDirectoryBucketMixinProps.getTags()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
bucketEncryption
@Stability(Stable) public CfnDirectoryBucketMixinProps.Builder bucketEncryption(IResolvable bucketEncryption) Sets the value ofCfnDirectoryBucketMixinProps.getBucketEncryption()- 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). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .- Returns:
this
-
bucketEncryption
@Stability(Stable) public CfnDirectoryBucketMixinProps.Builder bucketEncryption(CfnDirectoryBucketPropsMixin.BucketEncryptionProperty bucketEncryption) Sets the value ofCfnDirectoryBucketMixinProps.getBucketEncryption()- 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). For information about default encryption for directory buckets, see Setting and monitoring default encryption for directory buckets in the Amazon S3 User Guide .- Returns:
this
-
bucketName
Sets the value ofCfnDirectoryBucketMixinProps.getBucketName()- Parameters:
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.
- Returns:
this
-
dataRedundancy
@Stability(Stable) public CfnDirectoryBucketMixinProps.Builder dataRedundancy(String dataRedundancy) Sets the value ofCfnDirectoryBucketMixinProps.getDataRedundancy()- Parameters:
dataRedundancy- The number of Zone (Availability Zone or Local Zone) that's used for redundancy for the bucket.- Returns:
this
-
lifecycleConfiguration
@Stability(Stable) public CfnDirectoryBucketMixinProps.Builder lifecycleConfiguration(IResolvable lifecycleConfiguration) Sets the value ofCfnDirectoryBucketMixinProps.getLifecycleConfiguration()- Parameters:
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 .- Returns:
this
-
lifecycleConfiguration
@Stability(Stable) public CfnDirectoryBucketMixinProps.Builder lifecycleConfiguration(CfnDirectoryBucketPropsMixin.LifecycleConfigurationProperty lifecycleConfiguration) Sets the value ofCfnDirectoryBucketMixinProps.getLifecycleConfiguration()- Parameters:
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 .- Returns:
this
-
locationName
Sets the value ofCfnDirectoryBucketMixinProps.getLocationName()- Parameters:
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 isusw2-az1.- Returns:
this
-
tags
Sets the value ofCfnDirectoryBucketMixinProps.getTags()- Parameters:
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 .- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnDirectoryBucketMixinProps>- Returns:
- a new instance of
CfnDirectoryBucketMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-