Show / Hide Table of Contents

Interface IVpcV2

(experimental) Placeholder to see what extra props we might need, will be added to original IVPC.

Inherited Members
IVpc.AddClientVpnEndpoint(string, IClientVpnEndpointOptions)
IVpc.AddFlowLog(string, IFlowLogOptions)
IVpc.AddGatewayEndpoint(string, IGatewayVpcEndpointOptions)
IVpc.AddInterfaceEndpoint(string, IInterfaceVpcEndpointOptions)
IVpc.AddVpnConnection(string, IVpnConnectionOptions)
IVpc.EnableVpnGateway(IEnableVpnGatewayOptions)
IVpc.SelectSubnets(ISubnetSelection)
IVpc.AvailabilityZones
IVpc.InternetConnectivityEstablished
IVpc.IsolatedSubnets
IVpc.PrivateSubnets
IVpc.PublicSubnets
IVpc.VpcArn
IVpc.VpcCidrBlock
IVpc.VpcId
IVpc.VpnGatewayId
IResource.ApplyRemovalPolicy(RemovalPolicy)
IResource.Env
IResource.Stack
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public interface IVpcV2 : IVpc, IResource, IConstruct, IDependable
Syntax (vb)
Public Interface IVpcV2 Inherits IVpc, IResource, IConstruct, IDependable
Remarks

Stability: Experimental

Synopsis

Properties

Ipv4CidrBlock

(experimental) The primary IPv4 CIDR block associated with the VPC.

Ipv4IpamProvisionedCidrs

(experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.

OwnerAccountId

(experimental) The ID of the AWS account that owns the VPC.

Region

(experimental) Optional to override inferred region.

SecondaryCidrBlock

(experimental) The secondary CIDR blocks associated with the VPC.

VpcName

(experimental) VpcName to be used for tagging its components.

Methods

AddEgressOnlyInternetGateway(IEgressOnlyInternetGatewayOptions?)

(experimental) Add an Egress only Internet Gateway to current VPC.

AddInternetGateway(IInternetGatewayOptions?)

(experimental) Adds an Internet Gateway to current VPC.

AddNatGateway(INatGatewayOptions)

(experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.

CreateAcceptorVpcRole(string)

(experimental) Adds a new role to acceptor VPC account A cross account role is required for the VPC to peer with another account.

CreatePeeringConnection(string, IVPCPeeringConnectionOptions)

(experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs.

EnableVpnGatewayV2(IVPNGatewayV2Options)

(experimental) Adds VPN Gateway to VPC and set route propogation.

Properties

Ipv4CidrBlock

(experimental) The primary IPv4 CIDR block associated with the VPC.

string Ipv4CidrBlock { get; }
Property Value

string

Remarks

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}.

Stability: Experimental

Ipv4IpamProvisionedCidrs

(experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool.

string[]? Ipv4IpamProvisionedCidrs { get; }
Property Value

string[]

Remarks

Stability: Experimental

OwnerAccountId

(experimental) The ID of the AWS account that owns the VPC.

string OwnerAccountId { get; }
Property Value

string

Remarks

Default: - the account id of the parent stack

Stability: Experimental

Region

(experimental) Optional to override inferred region.

string Region { get; }
Property Value

string

Remarks

Default: - current stack's environment region

Stability: Experimental

SecondaryCidrBlock

(experimental) The secondary CIDR blocks associated with the VPC.

IVPCCidrBlock[]? SecondaryCidrBlock { get; }
Property Value

IVPCCidrBlock[]

Remarks

For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.

Stability: Experimental

VpcName

(experimental) VpcName to be used for tagging its components.

string? VpcName { get; }
Property Value

string

Remarks

Stability: Experimental

Attribute: true

Methods

AddEgressOnlyInternetGateway(IEgressOnlyInternetGatewayOptions?)

(experimental) Add an Egress only Internet Gateway to current VPC.

EgressOnlyInternetGateway AddEgressOnlyInternetGateway(IEgressOnlyInternetGatewayOptions? options = null)
Parameters
options IEgressOnlyInternetGatewayOptions
Returns

EgressOnlyInternetGateway

Remarks

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}.

Stability: Experimental

AddInternetGateway(IInternetGatewayOptions?)

(experimental) Adds an Internet Gateway to current VPC.

InternetGateway AddInternetGateway(IInternetGatewayOptions? options = null)
Parameters
options IInternetGatewayOptions
Returns

InternetGateway

Remarks

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')

Stability: Experimental

AddNatGateway(INatGatewayOptions)

(experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service.

NatGateway AddNatGateway(INatGatewayOptions options)
Parameters
options INatGatewayOptions
Returns

NatGateway

Remarks

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

Stability: Experimental

CreateAcceptorVpcRole(string)

(experimental) Adds a new role to acceptor VPC account A cross account role is required for the VPC to peer with another account.

Role CreateAcceptorVpcRole(string requestorAccountId)
Parameters
requestorAccountId string
Returns

Role

Remarks

For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/peer-with-vpc-in-another-account.html}.

Stability: Experimental

CreatePeeringConnection(string, IVPCPeeringConnectionOptions)

(experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs.

VPCPeeringConnection CreatePeeringConnection(string id, IVPCPeeringConnectionOptions options)
Parameters
id string
options IVPCPeeringConnectionOptions
Returns

VPCPeeringConnection

Remarks

For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/peering/what-is-vpc-peering.html}.

Stability: Experimental

EnableVpnGatewayV2(IVPNGatewayV2Options)

(experimental) Adds VPN Gateway to VPC and set route propogation.

VPNGatewayV2 EnableVpnGatewayV2(IVPNGatewayV2Options options)
Parameters
options IVPNGatewayV2Options
Returns

VPNGatewayV2

Remarks

For more information, see the {@link https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpngateway.html}.

Default: - no route propogation

Stability: Experimental

Back to top Generated by DocFX