Interface ICfnVPCProps
Properties for defining a CfnVPC
.
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ICfnVPCProps
Syntax (vb)
Public Interface ICfnVPCProps
Remarks
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.EC2;
var cfnVPCProps = new CfnVPCProps {
CidrBlock = "cidrBlock",
EnableDnsHostnames = false,
EnableDnsSupport = false,
InstanceTenancy = "instanceTenancy",
Ipv4IpamPoolId = "ipv4IpamPoolId",
Ipv4NetmaskLength = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
Synopsis
Properties
CidrBlock | The IPv4 network range for the VPC, in CIDR notation. |
EnableDnsHostnames | Indicates whether the instances launched in the VPC get DNS hostnames. |
EnableDnsSupport | Indicates whether the DNS resolution is supported for the VPC. |
InstanceTenancy | The allowed tenancy of instances launched into the VPC. |
Ipv4IpamPoolId | The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR. |
Ipv4NetmaskLength | The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool. |
Tags | The tags for the VPC. |
Properties
CidrBlock
The IPv4 network range for the VPC, in CIDR notation.
virtual string CidrBlock { get; }
Property Value
System.String
Remarks
For example, 10.0.0.0/16
. We modify the specified CIDR block to its canonical form; for example, if you specify 100.68.0.18/18
, we modify it to 100.68.0.0/18
.
You must specify either CidrBlock
or Ipv4IpamPoolId
.
EnableDnsHostnames
Indicates whether the instances launched in the VPC get DNS hostnames.
virtual object EnableDnsHostnames { get; }
Property Value
System.Object
Remarks
If enabled, instances in the VPC get DNS hostnames; otherwise, they do not. Disabled by default for nondefault VPCs. For more information, see DNS attributes in your VPC .
You can only enable DNS hostnames if you've enabled DNS support.
EnableDnsSupport
Indicates whether the DNS resolution is supported for the VPC.
virtual object EnableDnsSupport { get; }
Property Value
System.Object
Remarks
If enabled, queries to the Amazon provided DNS server at the 169.254.169.253 IP address, or the reserved IP address at the base of the VPC network range "plus two" succeed. If disabled, the Amazon provided DNS service in the VPC that resolves public DNS hostnames to IP addresses is not enabled. Enabled by default. For more information, see DNS attributes in your VPC .
InstanceTenancy
The allowed tenancy of instances launched into the VPC.
virtual string InstanceTenancy { get; }
Property Value
System.String
Remarks
Updating InstanceTenancy
requires no replacement only if you are updating its value from dedicated
to default
. Updating InstanceTenancy
from default
to dedicated
requires replacement.
Ipv4IpamPoolId
The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR.
virtual string Ipv4IpamPoolId { get; }
Property Value
System.String
Remarks
For more information, see What is IPAM? in the Amazon VPC IPAM User Guide .
You must specify either CidrBlock
or Ipv4IpamPoolId
.
Ipv4NetmaskLength
The netmask length of the IPv4 CIDR you want to allocate to this VPC from an Amazon VPC IP Address Manager (IPAM) pool.
virtual Nullable<double> Ipv4NetmaskLength { get; }
Property Value
System.Nullable<System.Double>
Remarks
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .