@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-09T19:25:26.071Z") @Stability(value=Experimental) 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. |
software.amazon.jsii.JsiiObject.InitializationModeIClusterSubnetGroup.Jsii$Default, IClusterSubnetGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
ClusterSubnetGroup(software.constructs.Construct scope,
String id,
ClusterSubnetGroupProps props) |
protected |
ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static IClusterSubnetGroup |
fromClusterSubnetGroupName(software.constructs.Construct scope,
String id,
String clusterSubnetGroupName)
(experimental) Imports an existing subnet group by name.
|
String |
getClusterSubnetGroupName()
(experimental) The name of the cluster subnet group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourcegetNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validatejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackgetNodeprotected ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Experimental)
public ClusterSubnetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ClusterSubnetGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Experimental) @NotNull public static IClusterSubnetGroup fromClusterSubnetGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clusterSubnetGroupName)
scope - This parameter is required.id - This parameter is required.clusterSubnetGroupName - This parameter is required.@Stability(value=Experimental) @NotNull public String getClusterSubnetGroupName()
getClusterSubnetGroupName in interface IClusterSubnetGroupCopyright © 2022. All rights reserved.