Class CfnDirectoryBucketProps.Builder

java.lang.Object
software.amazon.awscdk.services.s3express.CfnDirectoryBucketProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnDirectoryBucketProps>
Enclosing interface:
CfnDirectoryBucketProps

@Stability(Stable) public static final class CfnDirectoryBucketProps.Builder extends Object implements software.amazon.jsii.Builder<CfnDirectoryBucketProps>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • dataRedundancy

      @Stability(Stable) public CfnDirectoryBucketProps.Builder dataRedundancy(String dataRedundancy)
      Parameters:
      dataRedundancy - The number of Availability Zone that's used for redundancy for the bucket. This parameter is required.
      Returns:
      this
    • locationName

      @Stability(Stable) public CfnDirectoryBucketProps.Builder locationName(String locationName)
      Parameters:
      locationName - The name of the location where the bucket will be created. This parameter is required. 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 .
      Returns:
      this
    • bucketName

      @Stability(Stable) public CfnDirectoryBucketProps.Builder bucketName(String bucketName)
      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 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.

      Returns:
      this
    • build

      @Stability(Stable) public CfnDirectoryBucketProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnDirectoryBucketProps>
      Returns:
      a new instance of CfnDirectoryBucketProps
      Throws:
      NullPointerException - if any required attribute was not provided