Interface IVpc.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
,IResource
,IResource.Jsii$Default
,IVpc
,software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
IVpcV2.Jsii$Default
- All Known Implementing Classes:
IVpc.Jsii$Proxy
,IVpcV2.Jsii$Proxy
- Enclosing interface:
IVpc
IVpc
.-
Nested Class Summary
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default, software.constructs.IConstruct.Jsii$Proxy
Nested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpc
IVpc.Jsii$Default, IVpc.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClientVpnEndpoint
addClientVpnEndpoint
(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.default FlowLog
addFlowLog
(String id, FlowLogOptions options) Adds a new Flow Log to this VPC.default GatewayVpcEndpoint
addGatewayEndpoint
(String id, GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.default InterfaceVpcEndpoint
addInterfaceEndpoint
(String id, InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.default VpnConnection
addVpnConnection
(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.AZs for this VPC.default ResourceEnvironment
getEnv()
The environment this resource belongs to.default software.constructs.IDependable
Dependable that can be depended upon to force internet connectivity established on the VPC.List of isolated subnets in this VPC.default software.constructs.Node
getNode()
The tree node.List of private subnets in this VPC.List of public subnets in this VPC.default Stack
getStack()
The stack in which this resource is defined.default String
ARN for this VPC.default String
CIDR range for this VPC.default String
getVpcId()
Identifier for this VPC.default String
Identifier for the VPN gateway.default SelectedSubnets
selectSubnets
(SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Methods inherited from interface software.amazon.awscdk.services.ec2.IVpc
addFlowLog, selectSubnets
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getNode
@Stability(Stable) @NotNull default software.constructs.Node getNode()The tree node.- Specified by:
getNode
in interfacesoftware.constructs.IConstruct
- Specified by:
getNode
in interfacesoftware.constructs.IConstruct.Jsii$Default
- Specified by:
getNode
in interfaceIResource.Jsii$Default
-
getEnv
The environment this resource belongs to.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.
- Specified by:
getEnv
in interfaceIResource
- Specified by:
getEnv
in interfaceIResource.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
-
getAvailabilityZones
AZs for this VPC.- Specified by:
getAvailabilityZones
in interfaceIVpc
-
getInternetConnectivityEstablished
@Stability(Stable) @NotNull default software.constructs.IDependable getInternetConnectivityEstablished()Dependable that can be depended upon to force internet connectivity established on the VPC.- Specified by:
getInternetConnectivityEstablished
in interfaceIVpc
-
getIsolatedSubnets
List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnets
in interfaceIVpc
-
getPrivateSubnets
List of private subnets in this VPC.- Specified by:
getPrivateSubnets
in interfaceIVpc
-
getPublicSubnets
List of public subnets in this VPC.- Specified by:
getPublicSubnets
in interfaceIVpc
-
getVpcArn
ARN for this VPC. -
getVpcCidrBlock
CIDR range for this VPC.- Specified by:
getVpcCidrBlock
in interfaceIVpc
-
getVpcId
Identifier for this VPC. -
getVpnGatewayId
Identifier for the VPN gateway.- Specified by:
getVpnGatewayId
in interfaceIVpc
-
applyRemovalPolicy
Apply the given removal policy to this resource.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
).- Specified by:
applyRemovalPolicy
in interfaceIResource
- Specified by:
applyRemovalPolicy
in interfaceIResource.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
addClientVpnEndpoint
@Stability(Stable) @NotNull default ClientVpnEndpoint addClientVpnEndpoint(@NotNull String id, @NotNull ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.- Specified by:
addClientVpnEndpoint
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addFlowLog
@Stability(Stable) @NotNull default FlowLog addFlowLog(@NotNull String id, @Nullable FlowLogOptions options) Adds a new Flow Log to this VPC.- Specified by:
addFlowLog
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
-
-
addGatewayEndpoint
@Stability(Stable) @NotNull default GatewayVpcEndpoint addGatewayEndpoint(@NotNull String id, @NotNull GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.- Specified by:
addGatewayEndpoint
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addInterfaceEndpoint
@Stability(Stable) @NotNull default InterfaceVpcEndpoint addInterfaceEndpoint(@NotNull String id, @NotNull InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.- Specified by:
addInterfaceEndpoint
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addVpnConnection
@Stability(Stable) @NotNull default VpnConnection addVpnConnection(@NotNull String id, @NotNull VpnConnectionOptions options) Adds a new VPN connection to this VPC.- Specified by:
addVpnConnection
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
enableVpnGateway
Adds a VPN Gateway to this VPC.- Specified by:
enableVpnGateway
in interfaceIVpc
- Parameters:
options
- This parameter is required.
-
selectSubnets
@Stability(Stable) @NotNull default SelectedSubnets selectSubnets(@Nullable SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Requires that at least one subnet is matched, throws a descriptive error message otherwise.
- Specified by:
selectSubnets
in interfaceIVpc
- Parameters:
selection
-
-