Show / Hide Table of Contents

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.

string? CidrBlock { get; }
Property Value

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-cidrblock

EnableDnsHostnames

Indicates whether the instances launched in the VPC get DNS hostnames.

object? EnableDnsHostnames { get; }
Property Value

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-enablednshostnames

Type union: either bool or IResolvable

EnableDnsSupport

Indicates whether the DNS resolution is supported for the VPC.

object? EnableDnsSupport { get; }
Property Value

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-enablednssupport

Type union: either bool or IResolvable

InstanceTenancy

The allowed tenancy of instances launched into the VPC.

string? InstanceTenancy { get; }
Property Value

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.

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-instancetenancy

    Ipv4IpamPoolId

    The ID of an IPv4 IPAM pool you want to use for allocating this VPC's CIDR.

    string? Ipv4IpamPoolId { get; }
    Property Value

    string

    Remarks

    For more information, see What is IPAM? in the Amazon VPC IPAM User Guide .

    You must specify either CidrBlock or Ipv4IpamPoolId .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-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.

    double? Ipv4NetmaskLength { get; }
    Property Value

    double?

    Remarks

    For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-ipv4netmasklength

    Tags

    The tags for the VPC.

    ICfnTag[]? Tags { get; }
    Property Value

    ICfnTag[]

    Remarks

    See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpc.html#cfn-ec2-vpc-tags

    Back to top Generated by DocFX