Class IVpcV2.Jsii$Proxy
- All Implemented Interfaces:
IResource
,IResource.Jsii$Default
,IVpcV2
,IVpcV2.Jsii$Default
,IVpc
,IVpc.Jsii$Default
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IConstruct.Jsii$Default
,software.constructs.IDependable
,software.constructs.IDependable.Jsii$Default
- Enclosing interface:
- IVpcV2
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal ClientVpnEndpoint
addClientVpnEndpoint
(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.final void
(experimental) Add an Egress only Internet Gateway to current VPC.final void
(experimental) Add an Egress only Internet Gateway to current VPC.final FlowLog
addFlowLog
(String id) Adds a new Flow Log to this VPC.final FlowLog
addFlowLog
(String id, FlowLogOptions options) Adds a new Flow Log to this VPC.final GatewayVpcEndpoint
addGatewayEndpoint
(String id, GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.final InterfaceVpcEndpoint
addInterfaceEndpoint
(String id, InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.final void
(experimental) Adds an Internet Gateway to current VPC.final void
addInternetGateway
(InternetGatewayOptions options) (experimental) Adds an Internet Gateway to current VPC.final NatGateway
addNatGateway
(NatGatewayOptions options) (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.final VpnConnection
addVpnConnection
(String id, VpnConnectionOptions options) Adds a new VPN connection to this VPC.final void
applyRemovalPolicy
(RemovalPolicy policy) Apply the given removal policy to this resource.final Role
createAcceptorVpcRole
(String requestorAccountId) (experimental) Adds a new role to acceptor VPC account A cross account role is required for the VPC to peer with another account.final VPCPeeringConnection
createPeeringConnection
(String id, VPCPeeringConnectionOptions options) (experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs.final void
enableVpnGateway
(EnableVpnGatewayOptions options) Adds a VPN Gateway to this VPC.final VPNGatewayV2
enableVpnGatewayV2
(VPNGatewayV2Options options) (experimental) Adds VPN Gateway to VPC and set route propogation.AZs for this VPC.final ResourceEnvironment
getEnv()
The environment this resource belongs to.final software.constructs.IDependable
Dependable that can be depended upon to force internet connectivity established on the VPC.final 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.final software.constructs.Node
getNode()
The tree node.final 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.final String
(experimental) Optional to override inferred region.final List<IVPCCidrBlock>
(experimental) The secondary CIDR blocks associated with the VPC.final Stack
getStack()
The stack in which this resource is defined.final String
ARN for this VPC.final String
CIDR range for this VPC.final String
getVpcId()
Identifier for this VPC.final String
Identifier for the VPN gateway.final SelectedSubnets
Return information on the subnets appropriate for the given selection strategy.final SelectedSubnets
selectSubnets
(SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
-
-
Method Details
-
getNode
@Stability(Stable) @NotNull public final 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
- Specified by:
getNode
in interfaceIVpcV2.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
- Specified by:
getEnv
in interfaceIVpcV2.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
- Specified by:
getStack
in interfaceIVpcV2.Jsii$Default
-
getAvailabilityZones
AZs for this VPC.- Specified by:
getAvailabilityZones
in interfaceIVpc
- Specified by:
getAvailabilityZones
in interfaceIVpc.Jsii$Default
- Specified by:
getAvailabilityZones
in interfaceIVpcV2.Jsii$Default
-
getInternetConnectivityEstablished
@Stability(Stable) @NotNull public final 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
- Specified by:
getInternetConnectivityEstablished
in interfaceIVpcV2.Jsii$Default
-
getIsolatedSubnets
List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnets
in interfaceIVpc
- Specified by:
getIsolatedSubnets
in interfaceIVpc.Jsii$Default
- Specified by:
getIsolatedSubnets
in interfaceIVpcV2.Jsii$Default
-
getPrivateSubnets
List of private subnets in this VPC.- Specified by:
getPrivateSubnets
in interfaceIVpc
- Specified by:
getPrivateSubnets
in interfaceIVpc.Jsii$Default
- Specified by:
getPrivateSubnets
in interfaceIVpcV2.Jsii$Default
-
getPublicSubnets
List of public subnets in this VPC.- Specified by:
getPublicSubnets
in interfaceIVpc
- Specified by:
getPublicSubnets
in interfaceIVpc.Jsii$Default
- Specified by:
getPublicSubnets
in interfaceIVpcV2.Jsii$Default
-
getVpcArn
ARN for this VPC.- Specified by:
getVpcArn
in interfaceIVpc
- Specified by:
getVpcArn
in interfaceIVpc.Jsii$Default
- Specified by:
getVpcArn
in interfaceIVpcV2.Jsii$Default
-
getVpcCidrBlock
CIDR range for this VPC.- Specified by:
getVpcCidrBlock
in interfaceIVpc
- Specified by:
getVpcCidrBlock
in interfaceIVpc.Jsii$Default
- Specified by:
getVpcCidrBlock
in interfaceIVpcV2.Jsii$Default
-
getVpcId
Identifier for this VPC.- Specified by:
getVpcId
in interfaceIVpc
- Specified by:
getVpcId
in interfaceIVpc.Jsii$Default
- Specified by:
getVpcId
in interfaceIVpcV2.Jsii$Default
-
getVpnGatewayId
Identifier for the VPN gateway.- Specified by:
getVpnGatewayId
in interfaceIVpc
- Specified by:
getVpnGatewayId
in interfaceIVpc.Jsii$Default
- Specified by:
getVpnGatewayId
in interfaceIVpcV2.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 {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-sizing-ipv4}.
- Specified by:
getIpv4CidrBlock
in interfaceIVpcV2
- Specified by:
getIpv4CidrBlock
in interfaceIVpcV2.Jsii$Default
-
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
- Specified by:
getOwnerAccountId
in interfaceIVpcV2.Jsii$Default
-
getRegion
(experimental) Optional to override inferred region.Default: - current stack's environment region
- Specified by:
getRegion
in interfaceIVpcV2
- Specified by:
getRegion
in interfaceIVpcV2.Jsii$Default
-
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
- Specified by:
getIpv4IpamProvisionedCidrs
in interfaceIVpcV2.Jsii$Default
-
getSecondaryCidrBlock
(experimental) The secondary CIDR blocks associated with the VPC.For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
- Specified by:
getSecondaryCidrBlock
in interfaceIVpcV2
- Specified by:
getSecondaryCidrBlock
in interfaceIVpcV2.Jsii$Default
-
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
- Specified by:
applyRemovalPolicy
in interfaceIVpcV2.Jsii$Default
- Parameters:
policy
- This parameter is required.
-
addClientVpnEndpoint
@Stability(Stable) @NotNull public final 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
- Specified by:
addClientVpnEndpoint
in interfaceIVpcV2.Jsii$Default
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addFlowLog
@Stability(Stable) @NotNull public final 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
- Specified by:
addFlowLog
in interfaceIVpcV2.Jsii$Default
- Parameters:
id
- This parameter is required.options
-
-
addFlowLog
Adds a new Flow Log to this VPC.- Specified by:
addFlowLog
in interfaceIVpc
- Parameters:
id
- This parameter is required.
-
addGatewayEndpoint
@Stability(Stable) @NotNull public final 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
- Specified by:
addGatewayEndpoint
in interfaceIVpcV2.Jsii$Default
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addInterfaceEndpoint
@Stability(Stable) @NotNull public final 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
- Specified by:
addInterfaceEndpoint
in interfaceIVpcV2.Jsii$Default
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addVpnConnection
@Stability(Stable) @NotNull public final 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
- Specified by:
addVpnConnection
in interfaceIVpcV2.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
- Specified by:
enableVpnGateway
in interfaceIVpcV2.Jsii$Default
- Parameters:
options
- This parameter is required.
-
selectSubnets
@Stability(Stable) @NotNull public final 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
- Specified by:
selectSubnets
in interfaceIVpcV2.Jsii$Default
- Parameters:
selection
-
-
selectSubnets
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
-
addEgressOnlyInternetGateway
@Stability(Experimental) public final 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 {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2.Jsii$Default
- Parameters:
options
-
-
addEgressOnlyInternetGateway
@Stability(Experimental) public final void addEgressOnlyInternetGateway()(experimental) Add an Egress only Internet Gateway to current VPC.Can only be used for ipv6 enabled VPCs. For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/egress-only-internet-gateway-basics.html}.
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2
-
addInternetGateway
@Stability(Experimental) public final void addInternetGateway(@Nullable InternetGatewayOptions options) (experimental) Adds an Internet Gateway to current VPC.For more information, see the {@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
- Specified by:
addInternetGateway
in interfaceIVpcV2.Jsii$Default
- Parameters:
options
-
-
addInternetGateway
@Stability(Experimental) public final void addInternetGateway()(experimental) Adds an Internet Gateway to current VPC.For more information, see the {@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
-
addNatGateway
@Stability(Experimental) @NotNull public final 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 {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-nat-gateway.html}.
Default: ConnectivityType.Public
- Specified by:
addNatGateway
in interfaceIVpcV2
- Specified by:
addNatGateway
in interfaceIVpcV2.Jsii$Default
- Parameters:
options
- This parameter is required.
-
createAcceptorVpcRole
@Stability(Experimental) @NotNull public final Role createAcceptorVpcRole(@NotNull String requestorAccountId) (experimental) Adds a new role to acceptor VPC account A cross account role is required for the VPC to peer with another account.For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/peer-with-vpc-in-another-account.html}.
- Specified by:
createAcceptorVpcRole
in interfaceIVpcV2
- Specified by:
createAcceptorVpcRole
in interfaceIVpcV2.Jsii$Default
- Parameters:
requestorAccountId
- This parameter is required.
-
createPeeringConnection
@Stability(Experimental) @NotNull public final VPCPeeringConnection createPeeringConnection(@NotNull String id, @NotNull VPCPeeringConnectionOptions options) (experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs.For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html}.
- Specified by:
createPeeringConnection
in interfaceIVpcV2
- Specified by:
createPeeringConnection
in interfaceIVpcV2.Jsii$Default
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
enableVpnGatewayV2
@Stability(Experimental) @NotNull public final VPNGatewayV2 enableVpnGatewayV2(@NotNull VPNGatewayV2Options options) (experimental) Adds VPN Gateway to VPC and set route propogation.For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html}.
Default: - no route propogation
- Specified by:
enableVpnGatewayV2
in interfaceIVpcV2
- Specified by:
enableVpnGatewayV2
in interfaceIVpcV2.Jsii$Default
- Parameters:
options
- This parameter is required.
-