Interface IVpcV2.Jsii$Default
- All Superinterfaces:
software.constructs.IConstruct,software.constructs.IConstruct.Jsii$Default,software.constructs.IDependable,software.constructs.IDependable.Jsii$Default,IEnvironmentAware,IEnvironmentAware.Jsii$Default,IResource,IResource.Jsii$Default,IVpc,IVpc.Jsii$Default,IVPCRef,IVPCRef.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$ProxyNested classes/interfaces inherited from interface software.constructs.IDependable
software.constructs.IDependable.Jsii$Default, software.constructs.IDependable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
IEnvironmentAware.Jsii$Default, IEnvironmentAware.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default, IResource.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.IVpc
IVpc.Jsii$Default, IVpc.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IVPCRef
IVPCRef.Jsii$Default, IVPCRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.IVpcV2
IVpcV2.Jsii$Default, IVpcV2.Jsii$Proxy -
Method Summary
Modifier and TypeMethodDescriptiondefault ClientVpnEndpointaddClientVpnEndpoint(String id, ClientVpnEndpointOptions options) Adds a new client VPN endpoint to this VPC.default EgressOnlyInternetGateway(experimental) Add an Egress only Internet Gateway to current VPC.default FlowLogaddFlowLog(String id, FlowLogOptions options) Adds a new Flow Log to this VPC.default GatewayVpcEndpointaddGatewayEndpoint(String id, GatewayVpcEndpointOptions options) Adds a new gateway endpoint to this VPC.default InterfaceVpcEndpointaddInterfaceEndpoint(String id, InterfaceVpcEndpointOptions options) Adds a new interface endpoint to this VPC.default InternetGatewayaddInternetGateway(InternetGatewayOptions options) (experimental) Adds an Internet Gateway to current VPC.default NatGatewayaddNatGateway(NatGatewayOptions options) (experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.default VpnConnectionaddVpnConnection(String id, VpnConnectionOptions options) Adds a new VPN connection to this VPC.default voidapplyRemovalPolicy(RemovalPolicy policy) Apply the given removal policy to this resource.default RolecreateAcceptorVpcRole(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.default VPCPeeringConnectioncreatePeeringConnection(String id, VPCPeeringConnectionOptions options) (experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs.default voidenableVpnGateway(EnableVpnGatewayOptions options) Adds a VPN Gateway to this VPC.default VPNGatewayV2enableVpnGatewayV2(VPNGatewayV2Options options) (experimental) Adds VPN Gateway to VPC and set route propogation.AZs for this VPC.default ResourceEnvironmentgetEnv()The environment this resource belongs to.default software.constructs.IDependableDependable 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.NodegetNode()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 StackgetStack()The stack in which this resource is defined.default StringARN for this VPC.default StringCIDR range for this VPC.default StringgetVpcId()Identifier for this VPC.default String(experimental) VpcName to be used for tagging its components.default VPCReference(experimental) A reference to a VPC resource.default StringIdentifier for the VPN gateway.default SelectedSubnetsselectSubnets(SubnetSelection selection) Return information on the subnets appropriate for the given selection strategy.Methods inherited from interface software.amazon.awscdk.services.ec2.IVpc
addFlowLog, selectSubnetsMethods inherited from interface software.amazon.awscdk.services.ec2.alpha.IVpcV2
addEgressOnlyInternetGateway, addInternetGatewayMethods 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:
getNodein interfacesoftware.constructs.IConstruct- Specified by:
getNodein interfacesoftware.constructs.IConstruct.Jsii$Default- Specified by:
getNodein interfaceIResource.Jsii$Default- Specified by:
getNodein interfaceIVpc- Specified by:
getNodein interfaceIVpc.Jsii$Default- Specified by:
getNodein interfaceIVPCRef.Jsii$Default
-
getEnv
The environment this resource belongs to.For resources that are created and managed in a Stack (those created by creating new class instances like
new Role(),new Bucket(), etc.), this is always the same as the environment of the stack they belong to.For referenced resources (those obtained from referencing methods like
Role.fromRoleArn(),Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.- Specified by:
getEnvin interfaceIEnvironmentAware- Specified by:
getEnvin interfaceIEnvironmentAware.Jsii$Default- Specified by:
getEnvin interfaceIResource.Jsii$Default- Specified by:
getEnvin interfaceIVpc- Specified by:
getEnvin interfaceIVpc.Jsii$Default- Specified by:
getEnvin interfaceIVPCRef.Jsii$Default
-
getStack
The stack in which this resource is defined.- Specified by:
getStackin interfaceIResource- Specified by:
getStackin interfaceIResource.Jsii$Default- Specified by:
getStackin interfaceIVpc.Jsii$Default
-
getVpcRef
(experimental) A reference to a VPC resource.- Specified by:
getVpcRefin interfaceIVpc.Jsii$Default- Specified by:
getVpcRefin interfaceIVPCRef- Specified by:
getVpcRefin interfaceIVPCRef.Jsii$Default
-
getAvailabilityZones
AZs for this VPC.- Specified by:
getAvailabilityZonesin interfaceIVpc- Specified by:
getAvailabilityZonesin 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:
getInternetConnectivityEstablishedin interfaceIVpc- Specified by:
getInternetConnectivityEstablishedin interfaceIVpc.Jsii$Default
-
getIsolatedSubnets
List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnetsin interfaceIVpc- Specified by:
getIsolatedSubnetsin interfaceIVpc.Jsii$Default
-
getPrivateSubnets
List of private subnets in this VPC.- Specified by:
getPrivateSubnetsin interfaceIVpc- Specified by:
getPrivateSubnetsin interfaceIVpc.Jsii$Default
-
getPublicSubnets
List of public subnets in this VPC.- Specified by:
getPublicSubnetsin interfaceIVpc- Specified by:
getPublicSubnetsin interfaceIVpc.Jsii$Default
-
getVpcArn
ARN for this VPC.- Specified by:
getVpcArnin interfaceIVpc- Specified by:
getVpcArnin interfaceIVpc.Jsii$Default
-
getVpcCidrBlock
CIDR range for this VPC.- Specified by:
getVpcCidrBlockin interfaceIVpc- Specified by:
getVpcCidrBlockin interfaceIVpc.Jsii$Default
-
getVpcId
Identifier for this VPC.- Specified by:
getVpcIdin interfaceIVpc- Specified by:
getVpcIdin interfaceIVpc.Jsii$Default
-
getVpnGatewayId
Identifier for the VPN gateway.- Specified by:
getVpnGatewayIdin interfaceIVpc- Specified by:
getVpnGatewayIdin 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:
getIpv4CidrBlockin interfaceIVpcV2
-
getOwnerAccountId
(experimental) The ID of the AWS account that owns the VPC.Default: - the account id of the parent stack
- Specified by:
getOwnerAccountIdin 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:
getIpv4IpamProvisionedCidrsin 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:
getSecondaryCidrBlockin interfaceIVpcV2
-
getVpcName
(experimental) VpcName to be used for tagging its components.- Specified by:
getVpcNamein 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:
applyRemovalPolicyin interfaceIResource- Specified by:
applyRemovalPolicyin interfaceIResource.Jsii$Default- Specified by:
applyRemovalPolicyin 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:
addClientVpnEndpointin interfaceIVpc- Specified by:
addClientVpnEndpointin 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:
addFlowLogin interfaceIVpc- Specified by:
addFlowLogin 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:
addGatewayEndpointin interfaceIVpc- Specified by:
addGatewayEndpointin 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:
addInterfaceEndpointin interfaceIVpc- Specified by:
addInterfaceEndpointin 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:
addVpnConnectionin interfaceIVpc- Specified by:
addVpnConnectionin interfaceIVpc.Jsii$Default- Parameters:
id- This parameter is required.options- This parameter is required.
-
enableVpnGateway
Adds a VPN Gateway to this VPC.- Specified by:
enableVpnGatewayin interfaceIVpc- Specified by:
enableVpnGatewayin 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:
selectSubnetsin interfaceIVpc- Specified by:
selectSubnetsin interfaceIVpc.Jsii$Default- Parameters:
selection-
-
addEgressOnlyInternetGateway
@Stability(Experimental) @NotNull default EgressOnlyInternetGateway 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:
addEgressOnlyInternetGatewayin interfaceIVpcV2- Parameters:
options-
-
addInternetGateway
@Stability(Experimental) @NotNull default InternetGateway addInternetGateway(@Nullable InternetGatewayOptions options) (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.htmlDefault: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')
- Specified by:
addInternetGatewayin 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.htmlDefault: ConnectivityType.Public
- Specified by:
addNatGatewayin interfaceIVpcV2- Parameters:
options- This parameter is required.
-
createAcceptorVpcRole
@Stability(Experimental) @NotNull default 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
}.invalid @link
{@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/peer-with-vpc-in-another-account.html- Specified by:
createAcceptorVpcRolein interfaceIVpcV2- Parameters:
requestorAccountId- This parameter is required.
-
createPeeringConnection
@Stability(Experimental) @NotNull default 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
}.invalid @link
{@link https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html- Specified by:
createPeeringConnectionin interfaceIVpcV2- Parameters:
id- This parameter is required.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.htmlDefault: - no route propogation
- Specified by:
enableVpnGatewayV2in interfaceIVpcV2- Parameters:
options- This parameter is required.
-