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

@Internal public static interface IVpcV2.Jsii$Default extends IVpcV2, IVpc.Jsii$Default
Internal default implementation for IVpcV2.
  • Method Details

    • getNode

      @Stability(Stable) @NotNull default software.constructs.Node getNode()
      The tree node.
      Specified by:
      getNode in interface software.constructs.IConstruct
      Specified by:
      getNode in interface software.constructs.IConstruct.Jsii$Default
      Specified by:
      getNode in interface IResource.Jsii$Default
      Specified by:
      getNode in interface IVpc.Jsii$Default
    • getEnv

      @Stability(Stable) @NotNull default ResourceEnvironment 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 interface IResource
      Specified by:
      getEnv in interface IResource.Jsii$Default
      Specified by:
      getEnv in interface IVpc.Jsii$Default
    • getStack

      @Stability(Stable) @NotNull default Stack getStack()
      The stack in which this resource is defined.
      Specified by:
      getStack in interface IResource
      Specified by:
      getStack in interface IResource.Jsii$Default
      Specified by:
      getStack in interface IVpc.Jsii$Default
    • getAvailabilityZones

      @Stability(Stable) @NotNull default List<String> getAvailabilityZones()
      AZs for this VPC.
      Specified by:
      getAvailabilityZones in interface IVpc
      Specified by:
      getAvailabilityZones in interface IVpc.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 interface IVpc
      Specified by:
      getInternetConnectivityEstablished in interface IVpc.Jsii$Default
    • getIsolatedSubnets

      @Stability(Stable) @NotNull default List<ISubnet> getIsolatedSubnets()
      List of isolated subnets in this VPC.
      Specified by:
      getIsolatedSubnets in interface IVpc
      Specified by:
      getIsolatedSubnets in interface IVpc.Jsii$Default
    • getPrivateSubnets

      @Stability(Stable) @NotNull default List<ISubnet> getPrivateSubnets()
      List of private subnets in this VPC.
      Specified by:
      getPrivateSubnets in interface IVpc
      Specified by:
      getPrivateSubnets in interface IVpc.Jsii$Default
    • getPublicSubnets

      @Stability(Stable) @NotNull default List<ISubnet> getPublicSubnets()
      List of public subnets in this VPC.
      Specified by:
      getPublicSubnets in interface IVpc
      Specified by:
      getPublicSubnets in interface IVpc.Jsii$Default
    • getVpcArn

      @Stability(Stable) @NotNull default String getVpcArn()
      ARN for this VPC.
      Specified by:
      getVpcArn in interface IVpc
      Specified by:
      getVpcArn in interface IVpc.Jsii$Default
    • getVpcCidrBlock

      @Stability(Stable) @NotNull default String getVpcCidrBlock()
      CIDR range for this VPC.
      Specified by:
      getVpcCidrBlock in interface IVpc
      Specified by:
      getVpcCidrBlock in interface IVpc.Jsii$Default
    • getVpcId

      @Stability(Stable) @NotNull default String getVpcId()
      Identifier for this VPC.
      Specified by:
      getVpcId in interface IVpc
      Specified by:
      getVpcId in interface IVpc.Jsii$Default
    • getVpnGatewayId

      @Stability(Stable) @Nullable default String getVpnGatewayId()
      Identifier for the VPN gateway.
      Specified by:
      getVpnGatewayId in interface IVpc
      Specified by:
      getVpnGatewayId in interface IVpc.Jsii$Default
    • getIpv4CidrBlock

      @Stability(Experimental) @NotNull default String 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 interface IVpcV2
    • getOwnerAccountId

      @Stability(Experimental) @NotNull default String getOwnerAccountId()
      (experimental) The ID of the AWS account that owns the VPC.

      Default: - the account id of the parent stack

      Specified by:
      getOwnerAccountId in interface IVpcV2
    • getRegion

      @Stability(Experimental) @NotNull default String getRegion()
      (experimental) Optional to override inferred region.

      Default: - current stack's environment region

      Specified by:
      getRegion in interface IVpcV2
    • getIpv4IpamProvisionedCidrs

      @Stability(Experimental) @Nullable default List<String> getIpv4IpamProvisionedCidrs()
      (experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.
      Specified by:
      getIpv4IpamProvisionedCidrs in interface IVpcV2
    • getSecondaryCidrBlock

      @Stability(Experimental) @Nullable default List<IVPCCidrBlock> 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 interface IVpcV2
    • applyRemovalPolicy

      @Stability(Stable) default void applyRemovalPolicy(@NotNull RemovalPolicy policy)
      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 interface IResource
      Specified by:
      applyRemovalPolicy in interface IResource.Jsii$Default
      Specified by:
      applyRemovalPolicy in interface IVpc.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 interface IVpc
      Specified by:
      addClientVpnEndpoint in interface IVpc.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 interface IVpc
      Specified by:
      addFlowLog in interface IVpc.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 interface IVpc
      Specified by:
      addGatewayEndpoint in interface IVpc.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 interface IVpc
      Specified by:
      addInterfaceEndpoint in interface IVpc.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 interface IVpc
      Specified by:
      addVpnConnection in interface IVpc.Jsii$Default
      Parameters:
      id - This parameter is required.
      options - This parameter is required.
    • enableVpnGateway

      @Stability(Stable) default void enableVpnGateway(@NotNull EnableVpnGatewayOptions options)
      Adds a VPN Gateway to this VPC.

      Specified by:
      enableVpnGateway in interface IVpc
      Specified by:
      enableVpnGateway in interface IVpc.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 interface IVpc
      Specified by:
      selectSubnets in interface IVpc.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 interface IVpcV2
      Parameters:
      options -
    • addInternetGateway

      @Stability(Experimental) default void 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.html
      }.

      Default: - defines route for all ipv4('0.0.0.0') and ipv6 addresses('::/0')

      Specified by:
      addInternetGateway in interface IVpcV2
      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 interface IVpcV2
      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 interface IVpcV2
      Parameters:
      options - This parameter is required.