@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:41.523Z") @Stability(value=Stable) public class SubnetGroup extends Resource implements ISubnetGroup
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.ec2.*;
import software.amazon.awscdk.services.rds.*;
Subnet subnet;
SubnetFilter subnetFilter;
Vpc vpc;
SubnetGroup subnetGroup = SubnetGroup.Builder.create(this, "MySubnetGroup")
.description("description")
.vpc(vpc)
// the properties below are optional
.removalPolicy(RemovalPolicy.DESTROY)
.subnetGroupName("subnetGroupName")
.vpcSubnets(SubnetSelection.builder()
.availabilityZones(List.of("availabilityZones"))
.onePerAz(false)
.subnetFilters(List.of(subnetFilter))
.subnetGroupName("subnetGroupName")
.subnets(List.of(subnet))
.subnetType(SubnetType.PRIVATE_ISOLATED)
.build())
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
SubnetGroup.Builder
A fluent builder for
SubnetGroup. |
software.amazon.jsii.JsiiObject.InitializationModeISubnetGroup.Jsii$Default, ISubnetGroup.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
|
SubnetGroup(software.constructs.Construct scope,
String id,
SubnetGroupProps props) |
protected |
SubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
SubnetGroup(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
static ISubnetGroup |
fromSubnetGroupName(software.constructs.Construct scope,
String id,
String subnetGroupName)
Imports an existing subnet group by name.
|
String |
getSubnetGroupName()
The name of the subnet group.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitapplyRemovalPolicy, getEnv, getStackprotected SubnetGroup(software.amazon.jsii.JsiiObjectRef objRef)
protected SubnetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public SubnetGroup(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
SubnetGroupProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.@Stability(value=Stable) @NotNull public static ISubnetGroup fromSubnetGroupName(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String subnetGroupName)
scope - This parameter is required.id - This parameter is required.subnetGroupName - This parameter is required.@Stability(value=Stable) @NotNull public String getSubnetGroupName()
getSubnetGroupName in interface ISubnetGroupCopyright © 2022. All rights reserved.