Interface IVpcV2.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
,IVpc.Jsii$Default
,IVpcV2
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
IVpcV2.Jsii$Proxy
- Enclosing interface:
IVpcV2
IVpcV2
.-
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
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.IVpcV2
IVpcV2.Jsii$Default, IVpcV2.Jsii$Proxy
-
Method Summary
Modifier and TypeMethodDescriptiondefault ClientVpnEndpoint
addClientVpnEndpoint
(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.default void
(experimental) Add an Egress only Internet Gateway to current 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 void
addInternetGateway
(InternetGatewayOptions options) (experimental) Adds an Internet Gateway to current VPC.default NatGateway
addNatGateway
(NatGatewayOptions options) (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.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.default VPNGatewayV2
enableVpnGatewayV2
(VPNGatewayV2Options options) (experimental) Adds VPN Gateway to VPC and set route propogation.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.default String
(experimental) The primary IPv4 CIDR block associated with the VPC.(experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.List of isolated subnets in this VPC.default software.constructs.Node
getNode()
The tree node.default String
(experimental) The ID of the AWS account that owns the VPC.List of private subnets in this VPC.List of public subnets in this VPC.default String
(experimental) Optional to override inferred region.default List<IVPCCidrBlock>
(experimental) The secondary CIDR blocks associated with the 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.awscdk.services.ec2.alpha.IVpcV2
addEgressOnlyInternetGateway, addInternetGateway
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
- Specified by:
getNode
in interfaceIVpc.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
- Specified by:
getEnv
in interfaceIVpc.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStack
in interfaceIResource
- Specified by:
getStack
in interfaceIResource.Jsii$Default
- Specified by:
getStack
in interfaceIVpc.Jsii$Default
-
getAvailabilityZones
AZs for this VPC.- Specified by:
getAvailabilityZones
in interfaceIVpc
- Specified by:
getAvailabilityZones
in interfaceIVpc.Jsii$Default
-
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
- Specified by:
getInternetConnectivityEstablished
in interfaceIVpc.Jsii$Default
-
getIsolatedSubnets
List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnets
in interfaceIVpc
- Specified by:
getIsolatedSubnets
in interfaceIVpc.Jsii$Default
-
getPrivateSubnets
List of private subnets in this VPC.- Specified by:
getPrivateSubnets
in interfaceIVpc
- Specified by:
getPrivateSubnets
in interfaceIVpc.Jsii$Default
-
getPublicSubnets
List of public subnets in this VPC.- Specified by:
getPublicSubnets
in interfaceIVpc
- Specified by:
getPublicSubnets
in interfaceIVpc.Jsii$Default
-
getVpcArn
ARN for this VPC.- Specified by:
getVpcArn
in interfaceIVpc
- Specified by:
getVpcArn
in interfaceIVpc.Jsii$Default
-
getVpcCidrBlock
CIDR range for this VPC.- Specified by:
getVpcCidrBlock
in interfaceIVpc
- Specified by:
getVpcCidrBlock
in interfaceIVpc.Jsii$Default
-
getVpcId
Identifier for this VPC.- Specified by:
getVpcId
in interfaceIVpc
- Specified by:
getVpcId
in interfaceIVpc.Jsii$Default
-
getVpnGatewayId
Identifier for the VPN gateway.- Specified by:
getVpnGatewayId
in interfaceIVpc
- Specified by:
getVpnGatewayId
in interfaceIVpc.Jsii$Default
-
getIpv4CidrBlock
(experimental) The primary IPv4 CIDR block associated with the VPC.Needed in order to validate the vpc range of subnet current prop vpcCidrBlock refers to the token value For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4
- Specified by:
getIpv4CidrBlock
in interfaceIVpcV2
-
getOwnerAccountId
(experimental) The ID of the AWS account that owns the VPC.Default: - the account id of the parent stack
- Specified by:
getOwnerAccountId
in interfaceIVpcV2
-
getRegion
(experimental) Optional to override inferred region.Default: - current stack's environment region
-
getIpv4IpamProvisionedCidrs
(experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.- Specified by:
getIpv4IpamProvisionedCidrs
in interfaceIVpcV2
-
getSecondaryCidrBlock
(experimental) The secondary CIDR blocks associated with the VPC.For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize
- Specified by:
getSecondaryCidrBlock
in interfaceIVpcV2
-
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
- Specified by:
applyRemovalPolicy
in interfaceIVpc.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
- Specified by:
addClientVpnEndpoint
in interfaceIVpc.Jsii$Default
- 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
- Specified by:
addFlowLog
in interfaceIVpc.Jsii$Default
- 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
- Specified by:
addGatewayEndpoint
in interfaceIVpc.Jsii$Default
- 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
- Specified by:
addInterfaceEndpoint
in interfaceIVpc.Jsii$Default
- 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
- Specified by:
addVpnConnection
in interfaceIVpc.Jsii$Default
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
enableVpnGateway
Adds a VPN Gateway to this VPC.- Specified by:
enableVpnGateway
in interfaceIVpc
- Specified by:
enableVpnGateway
in interfaceIVpc.Jsii$Default
- 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
- Specified by:
selectSubnets
in interfaceIVpc.Jsii$Default
- Parameters:
selection
-
-
addEgressOnlyInternetGateway
@Stability(Experimental) default void addEgressOnlyInternetGateway(@Nullable EgressOnlyInternetGatewayOptions options) (experimental) Add an Egress only Internet Gateway to current VPC.Can only be used for ipv6 enabled VPCs. For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2
- Parameters:
options
-
-
addInternetGateway
(experimental) Adds an Internet Gateway to current VPC.For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-igw-internet-access.html
Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
- Specified by:
addInternetGateway
in interfaceIVpcV2
- Parameters:
options
-
-
addNatGateway
@Stability(Experimental) @NotNull default NatGateway addNatGateway(@NotNull NatGatewayOptions options) (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.NAT Gateway Connectivity can be of type `Public` or `Private`. For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html
Default: ConnectivityType.Public
- Specified by:
addNatGateway
in interfaceIVpcV2
- Parameters:
options
- This parameter is required.
-
enableVpnGatewayV2
@Stability(Experimental) @NotNull default VPNGatewayV2 enableVpnGatewayV2(@NotNull VPNGatewayV2Options options) (experimental) Adds VPN Gateway to VPC and set route propogation.For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html
Default: - no route propogation
- Specified by:
enableVpnGatewayV2
in interfaceIVpcV2
- Parameters:
options
- This parameter is required.
-