Interface IVpcV2
(experimental) Placeholder to see what extra props we might need, will be added to original IVPC.
Inherited Members
Namespace: Amazon.CDK.AWS.ec2.Alpha
Assembly: Amazon.CDK.AWS.ec2.Alpha.dll
Syntax (csharp)
public interface IVpcV2 : IVpc, IResource
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. |
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
System.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.
virtual string[] Ipv4IpamProvisionedCidrs { get; }
Property Value
System.String[]
Remarks
Stability: Experimental
OwnerAccountId
(experimental) The ID of the AWS account that owns the VPC.
string OwnerAccountId { get; }
Property Value
System.String
Remarks
Default: - the account id of the parent stack
Stability: Experimental
Region
(experimental) Optional to override inferred region.
string Region { get; }
Property Value
System.String
Remarks
Default: - current stack's environment region
Stability: Experimental
SecondaryCidrBlock
(experimental) The secondary CIDR blocks associated with the VPC.
virtual IVPCCidrBlock[] SecondaryCidrBlock { get; }
Property Value
Remarks
For more information, see the {@link https://docs.aws.amazon.com/vpc/latest/userguide/vpc-cidr-blocks.html#vpc-resize}.
Stability: Experimental
Methods
AddEgressOnlyInternetGateway(IEgressOnlyInternetGatewayOptions)
(experimental) Add an Egress only Internet Gateway to current VPC.
void AddEgressOnlyInternetGateway(IEgressOnlyInternetGatewayOptions options = null)
Parameters
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.
void AddInternetGateway(IInternetGatewayOptions options = null)
Parameters
- options IInternetGatewayOptions
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
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 System.String
Returns
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 System.String
- options IVPCPeeringConnectionOptions
Returns
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
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