public static final class IVpc.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements IVpc.Jsii$Default
IVpc.Jsii$Default, IVpc.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
ClientVpnEndpoint |
addClientVpnEndpoint(java.lang.String id,
ClientVpnEndpointOptions options)
Adds a new client VPN endpoint to this VPC.
|
FlowLog |
addFlowLog(java.lang.String id)
Adds a new Flow Log to this VPC.
|
FlowLog |
addFlowLog(java.lang.String id,
FlowLogOptions options)
Adds a new Flow Log to this VPC.
|
GatewayVpcEndpoint |
addGatewayEndpoint(java.lang.String id,
GatewayVpcEndpointOptions options)
Adds a new gateway endpoint to this VPC.
|
InterfaceVpcEndpoint |
addInterfaceEndpoint(java.lang.String id,
InterfaceVpcEndpointOptions options)
Adds a new interface endpoint to this VPC.
|
VpnConnection |
addVpnConnection(java.lang.String id,
VpnConnectionOptions options)
Adds a new VPN connection to this VPC.
|
void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
void |
enableVpnGateway(EnableVpnGatewayOptions options)
Adds a VPN Gateway to this VPC.
|
java.util.List<java.lang.String> |
getAvailabilityZones()
AZs for this VPC.
|
ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
IDependable |
getInternetConnectivityEstablished()
Dependable that can be depended upon to force internet connectivity established on the VPC.
|
java.util.List<ISubnet> |
getIsolatedSubnets()
List of isolated subnets in this VPC.
|
ConstructNode |
getNode()
The construct tree node for this construct.
|
java.util.List<ISubnet> |
getPrivateSubnets()
List of private subnets in this VPC.
|
java.util.List<ISubnet> |
getPublicSubnets()
List of public subnets in this VPC.
|
Stack |
getStack()
The stack in which this resource is defined.
|
java.lang.String |
getVpcArn()
ARN for this VPC.
|
java.lang.String |
getVpcCidrBlock()
CIDR range for this VPC.
|
java.lang.String |
getVpcId()
Identifier for this VPC.
|
java.lang.String |
getVpnGatewayId()
Identifier for the VPN gateway.
|
SelectedSubnets |
selectSubnets()
Return information on the subnets appropriate for the given selection strategy.
|
SelectedSubnets |
selectSubnets(SubnetSelection selection)
Return information on the subnets appropriate for the given selection strategy.
|
public final ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
getNode
in interface IVpc.Jsii$Default
public final ResourceEnvironment getEnv()
For resources that are created and managed by the CDK (generally, those created by creating new class instances like Role, Bucket, etc.), this is always the same as the environment of the stack they belong to; however, for imported resources (those obtained from static methods like fromRoleArn, fromBucketName, etc.), that might be different than the stack they were imported into.
getEnv
in interface IResource
getEnv
in interface IResource.Jsii$Default
getEnv
in interface IVpc.Jsii$Default
public final Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
getStack
in interface IVpc.Jsii$Default
public final java.util.List<java.lang.String> getAvailabilityZones()
getAvailabilityZones
in interface IVpc
getAvailabilityZones
in interface IVpc.Jsii$Default
public final IDependable getInternetConnectivityEstablished()
getInternetConnectivityEstablished
in interface IVpc
getInternetConnectivityEstablished
in interface IVpc.Jsii$Default
public final java.util.List<ISubnet> getIsolatedSubnets()
getIsolatedSubnets
in interface IVpc
getIsolatedSubnets
in interface IVpc.Jsii$Default
public final java.util.List<ISubnet> getPrivateSubnets()
getPrivateSubnets
in interface IVpc
getPrivateSubnets
in interface IVpc.Jsii$Default
public final java.util.List<ISubnet> getPublicSubnets()
getPublicSubnets
in interface IVpc
getPublicSubnets
in interface IVpc.Jsii$Default
public final java.lang.String getVpcArn()
getVpcArn
in interface IVpc
getVpcArn
in interface IVpc.Jsii$Default
public final java.lang.String getVpcCidrBlock()
getVpcCidrBlock
in interface IVpc
getVpcCidrBlock
in interface IVpc.Jsii$Default
public final java.lang.String getVpcId()
getVpcId
in interface IVpc
getVpcId
in interface IVpc.Jsii$Default
public final java.lang.String getVpnGatewayId()
getVpnGatewayId
in interface IVpc
getVpnGatewayId
in interface IVpc.Jsii$Default
public final void applyRemovalPolicy(RemovalPolicy policy)
The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.
The resource can be deleted (RemovalPolicy.DESTROY
), or left in your AWS
account for data recovery and cleanup later (RemovalPolicy.RETAIN
).
applyRemovalPolicy
in interface IResource
applyRemovalPolicy
in interface IResource.Jsii$Default
applyRemovalPolicy
in interface IVpc.Jsii$Default
policy
- This parameter is required.public final ClientVpnEndpoint addClientVpnEndpoint(java.lang.String id, ClientVpnEndpointOptions options)
addClientVpnEndpoint
in interface IVpc
addClientVpnEndpoint
in interface IVpc.Jsii$Default
id
- This parameter is required.options
- This parameter is required.public final FlowLog addFlowLog(java.lang.String id, FlowLogOptions options)
addFlowLog
in interface IVpc
addFlowLog
in interface IVpc.Jsii$Default
id
- This parameter is required.options
- public final FlowLog addFlowLog(java.lang.String id)
addFlowLog
in interface IVpc
id
- This parameter is required.public final GatewayVpcEndpoint addGatewayEndpoint(java.lang.String id, GatewayVpcEndpointOptions options)
addGatewayEndpoint
in interface IVpc
addGatewayEndpoint
in interface IVpc.Jsii$Default
id
- This parameter is required.options
- This parameter is required.public final InterfaceVpcEndpoint addInterfaceEndpoint(java.lang.String id, InterfaceVpcEndpointOptions options)
addInterfaceEndpoint
in interface IVpc
addInterfaceEndpoint
in interface IVpc.Jsii$Default
id
- This parameter is required.options
- This parameter is required.public final VpnConnection addVpnConnection(java.lang.String id, VpnConnectionOptions options)
addVpnConnection
in interface IVpc
addVpnConnection
in interface IVpc.Jsii$Default
id
- This parameter is required.options
- This parameter is required.public final void enableVpnGateway(EnableVpnGatewayOptions options)
enableVpnGateway
in interface IVpc
enableVpnGateway
in interface IVpc.Jsii$Default
options
- This parameter is required.public final SelectedSubnets selectSubnets(SubnetSelection selection)
Requires that at least one subnet is matched, throws a descriptive error message otherwise.
selectSubnets
in interface IVpc
selectSubnets
in interface IVpc.Jsii$Default
selection
- public final SelectedSubnets selectSubnets()
Requires that at least one subnet is matched, throws a descriptive error message otherwise.
selectSubnets
in interface IVpc