@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)", date="2023-03-22T19:35:43.139Z") public class PrivateSubnet extends Subnet implements IPrivateSubnet
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.*; PrivateSubnet privateSubnet = PrivateSubnet.Builder.create(this, "MyPrivateSubnet") .availabilityZone("availabilityZone") .cidrBlock("cidrBlock") .vpcId("vpcId") // the properties below are optional .mapPublicIpOnLaunch(false) .build();
Modifier and Type | Class and Description |
---|---|
static class |
PrivateSubnet.Builder
A fluent builder for
PrivateSubnet . |
IPrivateSubnet.Jsii$Default, IPrivateSubnet.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
PrivateSubnet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
PrivateSubnet(software.amazon.jsii.JsiiObjectRef objRef) |
|
PrivateSubnet(software.constructs.Construct scope,
java.lang.String id,
PrivateSubnetProps props) |
Modifier and Type | Method and Description |
---|---|
static IPrivateSubnet |
fromPrivateSubnetAttributes(software.constructs.Construct scope,
java.lang.String id,
PrivateSubnetAttributes attrs) |
addDefaultInternetRoute, addDefaultNatRoute, addRoute, associateNetworkAcl, fromSubnetAttributes, fromSubnetId, getAvailabilityZone, getDependencyElements, getInternetConnectivityEstablished, getIpv4CidrBlock, getNetworkAcl, getRouteTable, getSubnetAvailabilityZone, getSubnetId, getSubnetIpv6CidrBlocks, getSubnetNetworkAclAssociationId, getSubnetOutpostArn, getSubnetVpcId, isVpcSubnet
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
associateNetworkAcl, getAvailabilityZone, getInternetConnectivityEstablished, getIpv4CidrBlock, getRouteTable, getSubnetId
applyRemovalPolicy, getEnv, getStack
getNode
protected PrivateSubnet(software.amazon.jsii.JsiiObjectRef objRef)
protected PrivateSubnet(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public PrivateSubnet(software.constructs.Construct scope, java.lang.String id, PrivateSubnetProps props)
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.public static IPrivateSubnet fromPrivateSubnetAttributes(software.constructs.Construct scope, java.lang.String id, PrivateSubnetAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.