public static interface IVpc.Jsii$Default extends IVpc, IResource.Jsii$Default
IVpc
.IVpc.Jsii$Default, IVpc.Jsii$Proxy
Modifier and Type | Method and Description |
---|---|
default ClientVpnEndpoint |
addClientVpnEndpoint(java.lang.String id,
ClientVpnEndpointOptions options)
Adds a new client VPN endpoint to this VPC.
|
default FlowLog |
addFlowLog(java.lang.String id,
FlowLogOptions options)
Adds a new Flow Log to this VPC.
|
default GatewayVpcEndpoint |
addGatewayEndpoint(java.lang.String id,
GatewayVpcEndpointOptions options)
Adds a new gateway endpoint to this VPC.
|
default InterfaceVpcEndpoint |
addInterfaceEndpoint(java.lang.String id,
InterfaceVpcEndpointOptions options)
Adds a new interface endpoint to this VPC.
|
default VpnConnection |
addVpnConnection(java.lang.String id,
VpnConnectionOptions options)
Adds a new VPN connection to this VPC.
|
default void |
applyRemovalPolicy(RemovalPolicy policy)
Apply the given removal policy to this resource.
|
default void |
enableVpnGateway(EnableVpnGatewayOptions options)
Adds a VPN Gateway to this VPC.
|
default java.util.List<java.lang.String> |
getAvailabilityZones()
AZs for this VPC.
|
default ResourceEnvironment |
getEnv()
The environment this resource belongs to.
|
default IDependable |
getInternetConnectivityEstablished()
Dependable that can be depended upon to force internet connectivity established on the VPC.
|
default java.util.List<ISubnet> |
getIsolatedSubnets()
List of isolated subnets in this VPC.
|
default ConstructNode |
getNode()
The construct tree node for this construct.
|
default java.util.List<ISubnet> |
getPrivateSubnets()
List of private subnets in this VPC.
|
default java.util.List<ISubnet> |
getPublicSubnets()
List of public subnets in this VPC.
|
default Stack |
getStack()
The stack in which this resource is defined.
|
default java.lang.String |
getVpcArn()
ARN for this VPC.
|
default java.lang.String |
getVpcCidrBlock()
CIDR range for this VPC.
|
default java.lang.String |
getVpcId()
Identifier for this VPC.
|
default java.lang.String |
getVpnGatewayId()
Identifier for the VPN gateway.
|
default SelectedSubnets |
selectSubnets(SubnetSelection selection)
Return information on the subnets appropriate for the given selection strategy.
|
addFlowLog, selectSubnets
default ConstructNode getNode()
getNode
in interface IConstruct
getNode
in interface IConstruct.Jsii$Default
getNode
in interface IResource.Jsii$Default
default 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
default Stack getStack()
getStack
in interface IResource
getStack
in interface IResource.Jsii$Default
default java.util.List<java.lang.String> getAvailabilityZones()
getAvailabilityZones
in interface IVpc
default IDependable getInternetConnectivityEstablished()
getInternetConnectivityEstablished
in interface IVpc
default java.util.List<ISubnet> getIsolatedSubnets()
getIsolatedSubnets
in interface IVpc
default java.util.List<ISubnet> getPrivateSubnets()
getPrivateSubnets
in interface IVpc
default java.util.List<ISubnet> getPublicSubnets()
getPublicSubnets
in interface IVpc
default java.lang.String getVpcArn()
default java.lang.String getVpcCidrBlock()
getVpcCidrBlock
in interface IVpc
default java.lang.String getVpcId()
default java.lang.String getVpnGatewayId()
getVpnGatewayId
in interface IVpc
default 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
policy
- This parameter is required.default ClientVpnEndpoint addClientVpnEndpoint(java.lang.String id, ClientVpnEndpointOptions options)
addClientVpnEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.default FlowLog addFlowLog(java.lang.String id, FlowLogOptions options)
addFlowLog
in interface IVpc
id
- This parameter is required.options
- default GatewayVpcEndpoint addGatewayEndpoint(java.lang.String id, GatewayVpcEndpointOptions options)
addGatewayEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.default InterfaceVpcEndpoint addInterfaceEndpoint(java.lang.String id, InterfaceVpcEndpointOptions options)
addInterfaceEndpoint
in interface IVpc
id
- This parameter is required.options
- This parameter is required.default VpnConnection addVpnConnection(java.lang.String id, VpnConnectionOptions options)
addVpnConnection
in interface IVpc
id
- This parameter is required.options
- This parameter is required.default void enableVpnGateway(EnableVpnGatewayOptions options)
enableVpnGateway
in interface IVpc
options
- This parameter is required.default SelectedSubnets selectSubnets(SubnetSelection selection)
Requires that at least one subnet is matched, throws a descriptive error message otherwise.
selectSubnets
in interface IVpc
selection
-