Class ClusterSubnetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.redshift.alpha.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 Summary
Modifier and TypeMethodDescriptionbuild()
static ClusterSubnetGroup.Builder
description
(String description) (experimental) Description of the subnet group.removalPolicy
(RemovalPolicy removalPolicy) (experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.(experimental) The VPC to place the subnet group in.vpcSubnets
(SubnetSelection vpcSubnets) (experimental) Which subnets within the VPC to associate with this group.
-
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
(experimental) Description of the subnet group.- Parameters:
description
- Description of the subnet group. This parameter is required.- Returns:
this
-
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
(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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ClusterSubnetGroup>
- Returns:
- a newly built instance of
ClusterSubnetGroup
.
-