Class ClusterSubnetGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.redshift.ClusterSubnetGroup
- All Implemented Interfaces:
IConstruct,IDependable,IResource,IClusterSubnetGroup,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:42.821Z")
@Stability(Experimental)
public class ClusterSubnetGroup
extends Resource
implements IClusterSubnetGroup
(experimental) Class for creating a Redshift cluster subnet group.
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();
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class(experimental) A fluent builder forClusterSubnetGroup.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.amazon.awscdk.services.redshift.IClusterSubnetGroup
IClusterSubnetGroup.Jsii$Default, IClusterSubnetGroup.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) ClusterSubnetGroup(software.constructs.Construct scope, String id, ClusterSubnetGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IClusterSubnetGroupfromClusterSubnetGroupName(software.constructs.Construct scope, String id, String clusterSubnetGroupName) (experimental) Imports an existing subnet group by name.(experimental) The name of the cluster subnet group.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResourceMethods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validateMethods inherited from class software.constructs.Construct
toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.core.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStackMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
ClusterSubnetGroup
protected ClusterSubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) -
ClusterSubnetGroup
protected ClusterSubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
ClusterSubnetGroup
@Stability(Experimental) public ClusterSubnetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ClusterSubnetGroupProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
fromClusterSubnetGroupName
@Stability(Experimental) @NotNull public static IClusterSubnetGroup fromClusterSubnetGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String clusterSubnetGroupName) (experimental) Imports an existing subnet group by name.- Parameters:
scope- This parameter is required.id- This parameter is required.clusterSubnetGroupName- This parameter is required.
-
getClusterSubnetGroupName
(experimental) The name of the cluster subnet group.- Specified by:
getClusterSubnetGroupNamein interfaceIClusterSubnetGroup
-