Class CfnDirectoryBucket.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucket>
- Enclosing class:
CfnDirectoryBucket
CfnDirectoryBucket
.-
Method Summary
Modifier and TypeMethodDescriptionbucketName
(String bucketName) A name for the bucket.build()
static CfnDirectoryBucket.Builder
dataRedundancy
(String dataRedundancy) The number of Availability Zone that's used for redundancy for the bucket.locationName
(String locationName) The name of the location where the bucket will be created.
-
Method Details
-
create
@Stability(Stable) public static CfnDirectoryBucket.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnDirectoryBucket.Builder
.
-
dataRedundancy
The number of Availability Zone that's used for redundancy for the bucket.- Parameters:
dataRedundancy
- The number of Availability Zone that's used for redundancy for the bucket. 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 AZ ID of the Availability Zone 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:
-
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 Availability Zone. The bucket name must also follow the format
*bucket_base_name* -- *az_id* --x-s3
(for example,*DOC-EXAMPLE-BUCKET* -- *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:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnDirectoryBucket>
- Returns:
- a newly built instance of
CfnDirectoryBucket
.
-