Class SubnetGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.core.Construct
software.amazon.awscdk.core.Resource
software.amazon.awscdk.services.neptune.SubnetGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IResource
,ISubnetGroup
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.347Z")
@Stability(Experimental)
public class SubnetGroup
extends Resource
implements ISubnetGroup
(experimental) Class for creating a RDS DB 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.neptune.*; import software.amazon.awscdk.core.*; Subnet subnet; SubnetFilter subnetFilter; Vpc vpc; SubnetGroup subnetGroup = SubnetGroup.Builder.create(this, "MySubnetGroup") .vpc(vpc) // the properties below are optional .description("description") .removalPolicy(RemovalPolicy.DESTROY) .subnetGroupName("subnetGroupName") .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
Modifier and TypeClassDescriptionstatic final class
(experimental) A fluent builder forSubnetGroup
.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.neptune.ISubnetGroup
ISubnetGroup.Jsii$Default, ISubnetGroup.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
SubnetGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
SubnetGroup
(software.amazon.jsii.JsiiObjectRef objRef) SubnetGroup
(software.constructs.Construct scope, String id, SubnetGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic ISubnetGroup
fromSubnetGroupName
(software.constructs.Construct scope, String id, String subnetGroupName) (experimental) Imports an existing subnet group by name.(experimental) The name of the subnet group.Methods inherited from class software.amazon.awscdk.core.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isResource
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
Methods inherited from class software.constructs.Construct
toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.awscdk.core.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.core.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
SubnetGroup
protected SubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) -
SubnetGroup
protected SubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
SubnetGroup
@Stability(Experimental) public SubnetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull SubnetGroupProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
fromSubnetGroupName
@Stability(Experimental) @NotNull public static ISubnetGroup fromSubnetGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String subnetGroupName) (experimental) Imports an existing subnet group by name.- Parameters:
scope
- This parameter is required.id
- This parameter is required.subnetGroupName
- This parameter is required.
-
getSubnetGroupName
(experimental) The name of the subnet group.- Specified by:
getSubnetGroupName
in interfaceISubnetGroup
-