Class ClusterSubnetGroup.Builder

java.lang.Object
software.amazon.awscdk.services.redshift.ClusterSubnetGroup.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<ClusterSubnetGroup>
Enclosing class:
ClusterSubnetGroup

@Stability(Experimental) public static final class ClusterSubnetGroup.Builder extends Object implements software.amazon.jsii.Builder<ClusterSubnetGroup>
(experimental) A fluent builder for ClusterSubnetGroup.
  • Method Details

    • create

      @Stability(Experimental) public static ClusterSubnetGroup.Builder create(software.constructs.Construct scope, String id)
      Parameters:
      scope - This parameter is required.
      id - This parameter is required.
      Returns:
      a new instance of ClusterSubnetGroup.Builder.
    • description

      @Stability(Experimental) public ClusterSubnetGroup.Builder description(String description)
      (experimental) Description of the subnet group.

      Parameters:
      description - Description of the subnet group. This parameter is required.
      Returns:
      this
    • vpc

      @Stability(Experimental) public ClusterSubnetGroup.Builder vpc(IVpc vpc)
      (experimental) The VPC to place the subnet group in.

      Parameters:
      vpc - The VPC to place the subnet group in. This parameter is required.
      Returns:
      this
    • removalPolicy

      @Stability(Experimental) public ClusterSubnetGroup.Builder removalPolicy(RemovalPolicy removalPolicy)
      (experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.

      Default: RemovalPolicy.RETAIN

      Parameters:
      removalPolicy - The removal policy to apply when the subnet group are removed from the stack or replaced during an update. This parameter is required.
      Returns:
      this
    • vpcSubnets

      @Stability(Experimental) public ClusterSubnetGroup.Builder vpcSubnets(SubnetSelection vpcSubnets)
      (experimental) Which subnets within the VPC to associate with this group.

      Default: - private subnets

      Parameters:
      vpcSubnets - Which subnets within the VPC to associate with this group. This parameter is required.
      Returns:
      this
    • build

      @Stability(Experimental) public ClusterSubnetGroup build()
      Specified by:
      build in interface software.amazon.jsii.Builder<ClusterSubnetGroup>
      Returns:
      a newly built instance of ClusterSubnetGroup.