Class VpcV2Base
- All Implemented Interfaces:
IVPCRef,IEnvironmentAware,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.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.ec2.alpha.IVpcV2
IVpcV2.Jsii$Default -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedVpcV2Base(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedVpcV2Base(software.amazon.jsii.JsiiObjectRef objRef) protectedprotectedVpcV2Base(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.(experimental) Adds a new Egress Only Internet Gateway to this VPC and defines a new route to the route table of given subnets.(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.(experimental) Adds a new Internet Gateway to this VPC.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.createAcceptorVpcRole(String requestorAccountId) (experimental) Creates peering connection role for acceptor VPC.createPeeringConnection(String id, VPCPeeringConnectionOptions options) (experimental) Creates a peering connection.voidenableVpnGateway(EnableVpnGatewayOptions options) Deprecated.use enableVpnGatewayV2 for compatibility with VPCV2.RouteenableVpnGatewayV2(VPNGatewayV2Options options) (experimental) Adds VPNGAtewayV2 to this VPC.(experimental) AZs for this VPC.(experimental) Returns the id of the Egress Only Internet Gateway (if enabled).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 StringgetVpcId()(experimental) Identifier for this VPC.abstract String(experimental) VpcName to be used for tagging its components.(experimental) A reference to a VPC resource.(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, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awscdk.IResource
applyRemovalPolicy, getStackMethods 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:
addClientVpnEndpointin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
addEgressOnlyInternetGateway
@Stability(Experimental) @NotNull public EgressOnlyInternetGateway 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:
addEgressOnlyInternetGatewayin interfaceIVpcV2- Parameters:
options-
-
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:
addEgressOnlyInternetGatewayin 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:
addFlowLogin interfaceIVpc- Parameters:
id- This parameter is required.options-
-
addFlowLog
(experimental) Adds a new flow log to this VPC.- Specified by:
addFlowLogin 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:
addGatewayEndpointin 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:
addInterfaceEndpointin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
addInternetGateway
@Stability(Experimental) @NotNull public InternetGateway addInternetGateway(@Nullable InternetGatewayOptions options) (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:
addInternetGatewayin interfaceIVpcV2- Parameters:
options-
-
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:
addInternetGatewayin 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:
addNatGatewayin 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:
addVpnConnectionin interfaceIVpc- Parameters:
id- This parameter is required.options- This parameter is required.
-
createAcceptorVpcRole
@Stability(Experimental) @NotNull public Role createAcceptorVpcRole(@NotNull String requestorAccountId) (experimental) Creates peering connection role for acceptor VPC.- Specified by:
createAcceptorVpcRolein interfaceIVpcV2- Parameters:
requestorAccountId- This parameter is required.
-
createPeeringConnection
@Stability(Experimental) @NotNull public VPCPeeringConnection createPeeringConnection(@NotNull String id, @NotNull VPCPeeringConnectionOptions options) (experimental) Creates a peering connection.- Specified by:
createPeeringConnectionin interfaceIVpcV2- 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:
enableVpnGatewayin 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:
enableVpnGatewayV2in 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:
selectSubnetsin 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:
selectSubnetsin interfaceIVpc
-
getAvailabilityZones
(experimental) AZs for this VPC.- Specified by:
getAvailabilityZonesin 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:
getInternetConnectivityEstablishedin 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:
getIpv4CidrBlockin interfaceIVpcV2
-
getIsolatedSubnets
(experimental) List of isolated subnets in this VPC.- Specified by:
getIsolatedSubnetsin interfaceIVpc
-
getOwnerAccountId
(experimental) Identifier of the owner for this VPC.- Specified by:
getOwnerAccountIdin interfaceIVpcV2
-
getPrivateSubnets
(experimental) List of private subnets in this VPC.- Specified by:
getPrivateSubnetsin interfaceIVpc
-
getPublicSubnets
(experimental) List of public subnets in this VPC.- Specified by:
getPublicSubnetsin interfaceIVpc
-
getRegion
(experimental) Region for this VPC. -
getVpcArn
(experimental) Arn of this VPC. -
getVpcCidrBlock
(experimental) CIDR range for this VPC.- Specified by:
getVpcCidrBlockin interfaceIVpc
-
getVpcId
(experimental) Identifier for this VPC. -
getVpcRef
(experimental) A reference to a VPC resource. -
getEgressOnlyInternetGatewayId
(experimental) Returns the id of the Egress Only Internet Gateway (if enabled). -
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:
getIpv4IpamProvisionedCidrsin interfaceIVpcV2
-
getSecondaryCidrBlock
(experimental) Secondary IPs for the VPC, can be multiple Ipv4 or Ipv6 Ipv4 should be within RFC#1918 range.- Specified by:
getSecondaryCidrBlockin interfaceIVpcV2
-
getVpcName
(experimental) VpcName to be used for tagging its components.- Specified by:
getVpcNamein interfaceIVpcV2
-
getVpnGatewayId
(experimental) Returns the id of the VPN Gateway (if enabled).- Specified by:
getVpnGatewayIdin 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.
-