@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:45.877Z") public class ClusterSubnetGroup extends Resource implements IClusterSubnetGroup
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; ClusterSubnetGroup clusterSubnetGroup = ClusterSubnetGroup.Builder.create(this, "MyClusterSubnetGroup") .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 | Class and Description |
---|---|
static class |
ClusterSubnetGroup.Builder
(experimental) A fluent builder for
ClusterSubnetGroup . |
IClusterSubnetGroup.Jsii$Default, IClusterSubnetGroup.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
|
ClusterSubnetGroup(software.constructs.Construct scope,
java.lang.String id,
ClusterSubnetGroupProps props) |
Modifier and Type | Method and Description |
---|---|
static IClusterSubnetGroup |
fromClusterSubnetGroupName(software.constructs.Construct scope,
java.lang.String id,
java.lang.String clusterSubnetGroupName)
(experimental) Imports an existing subnet group by name.
|
java.lang.String |
getClusterSubnetGroupName()
(experimental) The name of the cluster subnet group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applyRemovalPolicy, getEnv, getStack
getNode
protected ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public ClusterSubnetGroup(software.constructs.Construct scope, java.lang.String id, ClusterSubnetGroupProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IClusterSubnetGroup fromClusterSubnetGroupName(software.constructs.Construct scope, java.lang.String id, java.lang.String clusterSubnetGroupName)
scope
- This parameter is required.id
- This parameter is required.clusterSubnetGroupName
- This parameter is required.public java.lang.String getClusterSubnetGroupName()
getClusterSubnetGroupName
in interface IClusterSubnetGroup