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
Ipv4Cidr |
(experimental) The primary IPv4 CIDR block associated with the VPC. |
Ipv4Ipam |
(experimental) IPv4 CIDR provisioned under pool Required to check for overlapping CIDRs after provisioning is complete under IPAM pool. |
Owner |
(experimental) The ID of the AWS account that owns the VPC. |
Region | (experimental) Optional to override inferred region. |
Secondary |
(experimental) The secondary CIDR blocks associated with the VPC. |
Vpc |
(experimental) VpcName to be used for tagging its components. |
Methods
Add |
(experimental) Add an Egress only Internet Gateway to current VPC. |
Add |
(experimental) Adds an Internet Gateway to current VPC. |
Add |
(experimental) Adds a new NAT Gateway to VPC A NAT gateway is a Network Address Translation (NAT) service. |
Create |
(experimental) Adds a new role to acceptor VPC account A cross account role is required for the VPC to peer with another account. |
Create |
(experimental) Creates a new peering connection A peering connection is a private virtual network established between two VPCs. |
Enable |
(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.
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.
Remarks
Stability: Experimental
OwnerAccountId
(experimental) The ID of the AWS account that owns the VPC.
string OwnerAccountId { get; }
Property Value
System.
Remarks
Default: - the account id of the parent stack
Stability: Experimental
Region
(experimental) Optional to override inferred region.
string Region { get; }
Property Value
System.
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
VpcName
(experimental) VpcName to be used for tagging its components.
virtual string VpcName { get; }
Property Value
System.
Remarks
Stability: Experimental
Attribute: true
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 IInternet
Gateway Options
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 INat
Gateway Options
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 IVPCPeering
Connection Options
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 IVPNGateway
V2Options
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