@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.072Z") @Stability(value=Experimental) public interface ClusterSubnetGroupProps extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.redshift.*;
import software.amazon.awscdk.core.*;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
ClusterSubnetGroupProps clusterSubnetGroupProps = ClusterSubnetGroupProps.builder()
.description("description")
.vpc(vpc)
// the properties below are optional
.removalPolicy(RemovalPolicy.DESTROY)
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnetName("subnetName")
.subnets(List.of(subnet))
.subnetType(SubnetType.ISOLATED)
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
ClusterSubnetGroupProps.Builder
A builder for
ClusterSubnetGroupProps |
static class |
ClusterSubnetGroupProps.Jsii$Proxy
An implementation for
ClusterSubnetGroupProps |
| Modifier and Type | Method and Description |
|---|---|
static ClusterSubnetGroupProps.Builder |
builder() |
String |
getDescription()
(experimental) Description of the subnet group.
|
default RemovalPolicy |
getRemovalPolicy()
(experimental) The removal policy to apply when the subnet group are removed from the stack or replaced during an update.
|
IVpc |
getVpc()
(experimental) The VPC to place the subnet group in.
|
default SubnetSelection |
getVpcSubnets()
(experimental) Which subnets within the VPC to associate with this group.
|
@Stability(value=Experimental) @NotNull String getDescription()
@Stability(value=Experimental) @NotNull IVpc getVpc()
@Stability(value=Experimental) @Nullable default RemovalPolicy getRemovalPolicy()
Default: RemovalPolicy.RETAIN
@Stability(value=Experimental) @Nullable default SubnetSelection getVpcSubnets()
Default: - private subnets
@Stability(value=Experimental) static ClusterSubnetGroupProps.Builder builder()
ClusterSubnetGroupProps.Builder of ClusterSubnetGroupPropsCopyright © 2022. All rights reserved.