@Generated(value="jsii-pacmak/0.19.0 (build 7c562bc)", date="2019-10-15T19:55:07.901Z") @Stability(value=Stable) public class Vpc extends software.amazon.awscdk.core.Resource implements IVpc
software.amazon.jsii.JsiiObject.InitializationMode
IVpc.Jsii$Proxy
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CIDR_RANGE
The default CIDR range used when creating VPCs.
|
static List<SubnetConfiguration> |
DEFAULT_SUBNETS
The default subnet configuration.
|
Modifier | Constructor and Description |
---|---|
|
Vpc(software.amazon.awscdk.core.Construct scope,
String id)
Vpc creates a VPC that spans a whole region.
|
|
Vpc(software.amazon.awscdk.core.Construct scope,
String id,
VpcProps props)
Vpc creates a VPC that spans a whole region.
|
protected |
Vpc(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Vpc(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
GatewayVpcEndpoint |
addDynamoDbEndpoint(String id)
Deprecated.
use `addGatewayEndpoint()` instead
|
GatewayVpcEndpoint |
addDynamoDbEndpoint(String id,
List<SubnetSelection> subnets)
Deprecated.
use `addGatewayEndpoint()` instead
|
GatewayVpcEndpoint |
addGatewayEndpoint(String id,
GatewayVpcEndpointOptions options)
Adds a new gateway endpoint to this VPC.
|
InterfaceVpcEndpoint |
addInterfaceEndpoint(String id,
InterfaceVpcEndpointOptions options)
Adds a new interface endpoint to this VPC.
|
GatewayVpcEndpoint |
addS3Endpoint(String id)
Deprecated.
use `addGatewayEndpoint()` instead
|
GatewayVpcEndpoint |
addS3Endpoint(String id,
List<SubnetSelection> subnets)
Deprecated.
use `addGatewayEndpoint()` instead
|
VpnConnection |
addVpnConnection(String id,
VpnConnectionOptions options)
Adds a new VPN connection to this VPC.
|
static IVpc |
fromLookup(software.amazon.awscdk.core.Construct scope,
String id,
VpcLookupOptions options)
Import an existing VPC from by querying the AWS environment this stack is deployed to.
|
static IVpc |
fromVpcAttributes(software.amazon.awscdk.core.Construct scope,
String id,
VpcAttributes attrs)
Import an exported VPC.
|
List<String> |
getAvailabilityZones()
AZs for this VPC.
|
protected Boolean |
getIncompleteSubnetDefinition()
If this is set to true, don't error out on trying to select subnets.
|
software.amazon.awscdk.core.IDependable |
getInternetConnectivityEstablished()
Dependencies for internet connectivity.
|
List<ISubnet> |
getIsolatedSubnets()
List of isolated subnets in this VPC.
|
protected List<software.amazon.awscdk.core.IConstruct> |
getNatDependencies()
Dependencies for NAT connectivity.
|
List<ISubnet> |
getPrivateSubnets()
List of private subnets in this VPC.
|
List<ISubnet> |
getPublicSubnets()
List of public subnets in this VPC.
|
String |
getVpcCidrBlock() |
List<String> |
getVpcCidrBlockAssociations() |
String |
getVpcDefaultNetworkAcl() |
String |
getVpcDefaultSecurityGroup() |
String |
getVpcId()
Identifier for this VPC.
|
List<String> |
getVpcIpv6CidrBlocks() |
String |
getVpnGatewayId()
Identifier for the VPN gateway.
|
protected List<ISubnet> |
selectSubnetObjects()
Return the subnets appropriate for the placement strategy.
|
protected List<ISubnet> |
selectSubnetObjects(SubnetSelection selection)
Return the subnets appropriate for the placement strategy.
|
SelectedSubnets |
selectSubnets()
Returns IDs of selected subnets.
|
SelectedSubnets |
selectSubnets(SubnetSelection selection)
Returns IDs of selected subnets.
|
protected void |
setIncompleteSubnetDefinition(Boolean value)
If this is set to true, don't error out on trying to select subnets.
|
generatePhysicalName, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack
getNode, isConstruct, prepare, synthesize, toString, validate
jsiiAsyncCall, jsiiCall, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticGet, jsiiStaticSet, setObjRef
@Stability(value=Stable) public static final String DEFAULT_CIDR_RANGE
@Stability(value=Stable) public static final List<SubnetConfiguration> DEFAULT_SUBNETS
protected Vpc(software.amazon.jsii.JsiiObjectRef objRef)
protected Vpc(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) public Vpc(software.amazon.awscdk.core.Construct scope, String id, VpcProps props)
scope
- This parameter is required.id
- This parameter is required.props
- @Stability(value=Stable) public Vpc(software.amazon.awscdk.core.Construct scope, String id)
scope
- This parameter is required.id
- This parameter is required.@Stability(value=Stable) public static IVpc fromLookup(software.amazon.awscdk.core.Construct scope, String id, VpcLookupOptions options)
scope
- This parameter is required.id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) public static IVpc fromVpcAttributes(software.amazon.awscdk.core.Construct scope, String id, VpcAttributes attrs)
scope
- This parameter is required.id
- This parameter is required.attrs
- This parameter is required.@Deprecated @Stability(value=Deprecated) public GatewayVpcEndpoint addDynamoDbEndpoint(String id, List<SubnetSelection> subnets)
id
- This parameter is required.subnets
- @Deprecated @Stability(value=Deprecated) public GatewayVpcEndpoint addDynamoDbEndpoint(String id)
id
- This parameter is required.@Stability(value=Stable) public GatewayVpcEndpoint addGatewayEndpoint(String id, GatewayVpcEndpointOptions options)
addGatewayEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) public InterfaceVpcEndpoint addInterfaceEndpoint(String id, InterfaceVpcEndpointOptions options)
addInterfaceEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Deprecated @Stability(value=Deprecated) public GatewayVpcEndpoint addS3Endpoint(String id, List<SubnetSelection> subnets)
id
- This parameter is required.subnets
- @Deprecated @Stability(value=Deprecated) public GatewayVpcEndpoint addS3Endpoint(String id)
id
- This parameter is required.@Stability(value=Stable) public VpnConnection addVpnConnection(String id, VpnConnectionOptions options)
addVpnConnection
in interface IVpc
id
- This parameter is required.options
- This parameter is required.@Stability(value=Stable) protected List<ISubnet> selectSubnetObjects(SubnetSelection selection)
selection
- @Stability(value=Stable) protected List<ISubnet> selectSubnetObjects()
@Stability(value=Stable) public SelectedSubnets selectSubnets(SubnetSelection selection)
selectSubnets
in interface IVpc
selection
- @Stability(value=Stable) public SelectedSubnets selectSubnets()
selectSubnets
in interface IVpc
@Stability(value=Stable) public List<String> getAvailabilityZones()
getAvailabilityZones
in interface IVpc
@Stability(value=Stable) public software.amazon.awscdk.core.IDependable getInternetConnectivityEstablished()
getInternetConnectivityEstablished
in interface IVpc
@Stability(value=Stable) public List<ISubnet> getIsolatedSubnets()
getIsolatedSubnets
in interface IVpc
@Stability(value=Stable) protected List<software.amazon.awscdk.core.IConstruct> getNatDependencies()
@Stability(value=Stable) public List<ISubnet> getPrivateSubnets()
getPrivateSubnets
in interface IVpc
@Stability(value=Stable) public List<ISubnet> getPublicSubnets()
getPublicSubnets
in interface IVpc
@Stability(value=Stable) public String getVpcCidrBlock()
@Stability(value=Stable) public List<String> getVpcCidrBlockAssociations()
@Stability(value=Stable) public String getVpcDefaultNetworkAcl()
@Stability(value=Stable) public String getVpcDefaultSecurityGroup()
@Stability(value=Stable) public String getVpcId()
@Stability(value=Stable) public String getVpnGatewayId()
getVpnGatewayId
in interface IVpc
@Stability(value=Stable) protected Boolean getIncompleteSubnetDefinition()
@Stability(value=Stable) protected void setIncompleteSubnetDefinition(Boolean value)
Copyright © 2019. All rights reserved.