Class VpcV2Base
- All Implemented Interfaces:
IResource
,IVpcV2
,IVpc
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
- Direct Known Subclasses:
VpcV2
For more information, see the
invalid @link
{@link https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_ec2.Vpc.html
-
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
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.IVpcV2
IVpcV2.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
VpcV2Base
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
VpcV2Base
(software.amazon.jsii.JsiiObjectRef objRef) protected
protected
VpcV2Base
(software.constructs.Construct scope, String id, ResourceProps props) -
Method Summary
Modifier and TypeMethodDescriptionaddClientVpnEndpoint
(String id, ClientVpnEndpointOptions options) (experimental) Adds a new client VPN endpoint to this VPC.void
(experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.void
(experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.addFlowLog
(String id) (experimental) Adds a new flow log to this VPC.addFlowLog
(String id, FlowLogOptions options) (experimental) Adds a new flow log to this VPC.addGatewayEndpoint
(String id, GatewayVpcEndpointOptions options) (experimental) Adds a new gateway endpoint to this VPC.addInterfaceEndpoint
(String id, InterfaceVpcEndpointOptions options) (experimental) Adds a new interface endpoint to this VPC.void
(experimental) Adds a new Internet Gateway to this VPC.void
addInternetGateway
(InternetGatewayOptions options) (experimental) Adds a new Internet Gateway to this VPC.addNatGateway
(NatGatewayOptions options) (experimental) Adds a new NAT Gateway to the given subnet of this VPC of given subnets.addVpnConnection
(String id, VpnConnectionOptions options) (experimental) Adds a new VPN connection to this VPC.void
enableVpnGateway
(EnableVpnGatewayOptions options) Deprecated.use enableVpnGatewayV2 for compatibility with VPCV2.RouteenableVpnGatewayV2
(VPNGatewayV2Options options) (experimental) Adds VPNGAtewayV2 to this VPC.(experimental) AZs for this VPC.protected Boolean
(experimental) If this is set to true, don't error out on trying to select subnets.abstract software.constructs.IDependable
(experimental) Dependable that can be depended upon to force internet connectivity established on the VPC.(experimental) Returns the id of the Internet Gateway (if enabled).abstract 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.(experimental) List of isolated subnets in this VPC.abstract String
(experimental) Identifier of the owner for this VPC.(experimental) List of private subnets in this VPC.(experimental) List of public subnets in this VPC.abstract String
(experimental) Region for this VPC.abstract List<IVPCCidrBlock>
(experimental) Secondary IPs for the VPC, can be multiple Ipv4 or Ipv6 Ipv4 should be within RFC#1918 range.abstract String
(experimental) Arn of this VPC.abstract String
(experimental) CIDR range for this VPC.abstract String
getVpcId()
(experimental) Identifier for this VPC.(experimental) Returns the id of the VPN Gateway (if enabled).(experimental) Return the subnets appropriate for the placement strategy.selectSubnetObjects
(SubnetSelection selection) (experimental) Return the subnets appropriate for the placement strategy.(experimental) Return information on the subnets appropriate for the given selection strategy.selectSubnets
(SubnetSelection selection) (experimental) Return information on the subnets appropriate for the given selection strategy.protected void
(experimental) If this is set to true, don't error out on trying to select subnets.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
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, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getEnv, getStack
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
VpcV2Base
protected VpcV2Base(software.amazon.jsii.JsiiObjectRef objRef) -
VpcV2Base
protected VpcV2Base(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
VpcV2Base
@Stability(Stable) protected VpcV2Base(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable ResourceProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
-
-
VpcV2Base
@Stability(Stable) protected VpcV2Base(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
scope
- This parameter is required.id
- This parameter is required.
-
-
Method Details
-
addClientVpnEndpoint
@Stability(Experimental) @NotNull public ClientVpnEndpoint addClientVpnEndpoint(@NotNull String id, @NotNull ClientVpnEndpointOptions options) (experimental) 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.
-
addEgressOnlyInternetGateway
@Stability(Experimental) public void addEgressOnlyInternetGateway(@Nullable EgressOnlyInternetGatewayOptions options) (experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.Default: - in case of no input subnets, no route is created
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2
- Parameters:
options
-
-
addEgressOnlyInternetGateway
@Stability(Experimental) public void addEgressOnlyInternetGateway()(experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.Default: - in case of no input subnets, no route is created
- Specified by:
addEgressOnlyInternetGateway
in interfaceIVpcV2
-
addFlowLog
@Stability(Experimental) @NotNull public FlowLog addFlowLog(@NotNull String id, @Nullable FlowLogOptions options) (experimental) Adds a new flow log to this VPC.- Specified by:
addFlowLog
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
-
-
addFlowLog
(experimental) Adds a new flow log to this VPC.- Specified by:
addFlowLog
in interfaceIVpc
- Parameters:
id
- This parameter is required.
-
addGatewayEndpoint
@Stability(Experimental) @NotNull public GatewayVpcEndpoint addGatewayEndpoint(@NotNull String id, @NotNull GatewayVpcEndpointOptions options) (experimental) 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(Experimental) @NotNull public InterfaceVpcEndpoint addInterfaceEndpoint(@NotNull String id, @NotNull InterfaceVpcEndpointOptions options) (experimental) Adds a new interface endpoint to this VPC.- Specified by:
addInterfaceEndpoint
in interfaceIVpc
- Parameters:
id
- This parameter is required.options
- This parameter is required.
-
addInternetGateway
(experimental) Adds a new Internet Gateway to this VPC.Default: - creates a new route for public subnets(with all outbound access) to the Internet Gateway.
- Specified by:
addInternetGateway
in interfaceIVpcV2
- Parameters:
options
-
-
addInternetGateway
@Stability(Experimental) public void addInternetGateway()(experimental) Adds a new Internet Gateway to this VPC.Default: - creates a new route for public subnets(with all outbound access) to the Internet Gateway.
- Specified by:
addInternetGateway
in interfaceIVpcV2
-
addNatGateway
@Stability(Experimental) @NotNull public NatGateway addNatGateway(@NotNull NatGatewayOptions options) (experimental) Adds a new NAT Gateway to the given subnet of this VPC of given subnets.- Specified by:
addNatGateway
in interfaceIVpcV2
- Parameters:
options
- This parameter is required.
-
addVpnConnection
@Stability(Experimental) @NotNull public VpnConnection addVpnConnection(@NotNull String id, @NotNull VpnConnectionOptions options) (experimental) 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
@Stability(Deprecated) @Deprecated public void enableVpnGateway(@NotNull EnableVpnGatewayOptions options) Deprecated.use enableVpnGatewayV2 for compatibility with VPCV2.Route(deprecated) Adds a VPN Gateway to this VPC.- Specified by:
enableVpnGateway
in interfaceIVpc
- Parameters:
options
- This parameter is required.
-
enableVpnGatewayV2
@Stability(Experimental) @NotNull public VPNGatewayV2 enableVpnGatewayV2(@NotNull VPNGatewayV2Options options) (experimental) Adds VPNGAtewayV2 to this VPC.- Specified by:
enableVpnGatewayV2
in interfaceIVpcV2
- Parameters:
options
- This parameter is required.
-
selectSubnetObjects
@Stability(Experimental) @NotNull protected List<ISubnet> selectSubnetObjects(@Nullable SubnetSelection selection) (experimental) Return the subnets appropriate for the placement strategy.- Parameters:
selection
-
-
selectSubnetObjects
(experimental) Return the subnets appropriate for the placement strategy. -
selectSubnets
@Stability(Experimental) @NotNull public SelectedSubnets selectSubnets(@Nullable SubnetSelection selection) (experimental) 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
-
-
selectSubnets
(experimental) 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
-
getAvailabilityZones
(experimental) AZs for this VPC.- Specified by:
getAvailabilityZones
in interfaceIVpc
-
getInternetConnectivityEstablished
@Stability(Experimental) @NotNull public abstract software.constructs.IDependable getInternetConnectivityEstablished()(experimental) Dependable that can be depended upon to force internet connectivity established on the VPC.- Specified by:
getInternetConnectivityEstablished
in interfaceIVpc
-
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
-
getIsolatedSubnets
(experimental) List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnets
in interfaceIVpc
-
getOwnerAccountId
(experimental) Identifier of the owner for this VPC.- Specified by:
getOwnerAccountId
in interfaceIVpcV2
-
getPrivateSubnets
(experimental) List of private subnets in this VPC.- Specified by:
getPrivateSubnets
in interfaceIVpc
-
getPublicSubnets
(experimental) List of public subnets in this VPC.- Specified by:
getPublicSubnets
in interfaceIVpc
-
getRegion
(experimental) Region for this VPC. -
getVpcArn
(experimental) Arn of this VPC. -
getVpcCidrBlock
(experimental) CIDR range for this VPC.- Specified by:
getVpcCidrBlock
in interfaceIVpc
-
getVpcId
(experimental) Identifier for this VPC. -
getInternetGatewayId
(experimental) Returns the id of the Internet Gateway (if enabled). -
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) Secondary IPs for the VPC, can be multiple Ipv4 or Ipv6 Ipv4 should be within RFC#1918 range.- Specified by:
getSecondaryCidrBlock
in interfaceIVpcV2
-
getVpnGatewayId
(experimental) Returns the id of the VPN Gateway (if enabled).- Specified by:
getVpnGatewayId
in interfaceIVpc
-
getIncompleteSubnetDefinition
(experimental) If this is set to true, don't error out on trying to select subnets. -
setIncompleteSubnetDefinition
(experimental) If this is set to true, don't error out on trying to select subnets.
-