Show / Hide Table of Contents

Class CfnVPCCidrBlock

A CloudFormation AWS::EC2::VPCCidrBlock.

Inheritance
System.Object
Construct
CfnElement
CfnRefElement
CfnResource
CfnVPCCidrBlock
Implements
IConstruct
Constructs.IConstruct
IDependable
IInspectable
Inherited Members
CfnResource.IsCfnResource(IConstruct)
CfnResource.AddDeletionOverride(String)
CfnResource.AddDependsOn(CfnResource)
CfnResource.AddMetadata(String, Object)
CfnResource.AddOverride(String, Object)
CfnResource.AddPropertyDeletionOverride(String)
CfnResource.AddPropertyOverride(String, Object)
CfnResource.ApplyRemovalPolicy(Nullable<RemovalPolicy>, IRemovalPolicyOptions)
CfnResource.GetAtt(String)
CfnResource.GetMetadata(String)
CfnResource.ShouldSynthesize()
CfnResource.ToString()
CfnResource.ValidateProperties(Object)
CfnResource.CfnOptions
CfnResource.CfnResourceType
CfnResource.UpdatedProperites
CfnRefElement.Ref
CfnElement.IsCfnElement(Object)
CfnElement.OverrideLogicalId(String)
CfnElement.CreationStack
CfnElement.LogicalId
CfnElement.Stack
Construct.IsConstruct(Object)
Construct.OnPrepare()
Construct.OnSynthesize(ISynthesisSession)
Construct.OnValidate()
Construct.Prepare()
Construct.Synthesize(ISynthesisSession)
Construct.Validate()
Construct.Node
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnVPCCidrBlock : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnVPCCidrBlock
    Inherits CfnResource
    Implements IConstruct, IDependable, IInspectable
Remarks

Associates a CIDR block with your VPC. You can only associate a single IPv6 CIDR block with your VPC. The IPv6 CIDR block size is fixed at /56.

For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and Subnet Sizing in the Amazon VPC User Guide .

CloudformationResource: AWS::EC2::VPCCidrBlock

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.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 cfnVPCCidrBlock = new CfnVPCCidrBlock(this, "MyCfnVPCCidrBlock", new CfnVPCCidrBlockProps {
    VpcId = "vpcId",

    // the properties below are optional
    AmazonProvidedIpv6CidrBlock = false,
    CidrBlock = "cidrBlock",
    Ipv4IpamPoolId = "ipv4IpamPoolId",
    Ipv4NetmaskLength = 123,
    Ipv6CidrBlock = "ipv6CidrBlock",
    Ipv6IpamPoolId = "ipv6IpamPoolId",
    Ipv6NetmaskLength = 123,
    Ipv6Pool = "ipv6Pool"
});

Synopsis

Constructors

CfnVPCCidrBlock(Construct, String, ICfnVPCCidrBlockProps)

Create a new AWS::EC2::VPCCidrBlock.

CfnVPCCidrBlock(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

CfnVPCCidrBlock(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

Properties

AmazonProvidedIpv6CidrBlock

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

CfnProperties
CidrBlock

An IPv4 CIDR block to associate with the VPC.

Ipv4IpamPoolId

Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.

Ipv4NetmaskLength

The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

Ipv6CidrBlock

An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request.

Ipv6IpamPoolId

Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.

Ipv6NetmaskLength

The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

Ipv6Pool

The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.

VpcId

The ID of the VPC.

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

RenderProperties(IDictionary<String, Object>)

Constructors

CfnVPCCidrBlock(Construct, String, ICfnVPCCidrBlockProps)

Create a new AWS::EC2::VPCCidrBlock.

public CfnVPCCidrBlock(Construct scope, string id, ICfnVPCCidrBlockProps props)
Parameters
scope Construct
  • scope in which this resource is defined.
id System.String
  • scoped id of the resource.
props ICfnVPCCidrBlockProps
  • resource properties.

CfnVPCCidrBlock(ByRefValue)

Used by jsii to construct an instance of this class from a Javascript-owned object reference

protected CfnVPCCidrBlock(ByRefValue reference)
Parameters
reference Amazon.JSII.Runtime.Deputy.ByRefValue

The Javascript-owned object reference

CfnVPCCidrBlock(DeputyBase.DeputyProps)

Used by jsii to construct an instance of this class from DeputyProps

protected CfnVPCCidrBlock(DeputyBase.DeputyProps props)
Parameters
props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps

The deputy props

Properties

AmazonProvidedIpv6CidrBlock

Requests an Amazon-provided IPv6 CIDR block with a /56 prefix length for the VPC.

public virtual object AmazonProvidedIpv6CidrBlock { get; set; }
Property Value

System.Object

Remarks

You cannot specify the range of IPv6 addresses, or the size of the CIDR block.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-amazonprovidedipv6cidrblock

CFN_RESOURCE_TYPE_NAME

The CloudFormation resource type name for this resource class.

public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value

System.String

CfnProperties

protected override IDictionary<string, object> CfnProperties { get; }
Property Value

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.CfnProperties

CidrBlock

An IPv4 CIDR block to associate with the VPC.

public virtual string CidrBlock { get; set; }
Property Value

System.String

Remarks

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

Ipv4IpamPoolId

Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.

public virtual string Ipv4IpamPoolId { get; set; }
Property Value

System.String

Remarks

For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-ipv4ipampoolid

Ipv4NetmaskLength

The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

public virtual Nullable<double> Ipv4NetmaskLength { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

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

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

Ipv6CidrBlock

An IPv6 CIDR block from the IPv6 address pool. You must also specify Ipv6Pool in the request.

public virtual string Ipv6CidrBlock { get; set; }
Property Value

System.String

Remarks

To let Amazon choose the IPv6 CIDR block for you, omit this parameter.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-ipv6cidrblock

Ipv6IpamPoolId

Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.

public virtual string Ipv6IpamPoolId { get; set; }
Property Value

System.String

Remarks

For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-ipv6ipampoolid

Ipv6NetmaskLength

The netmask length of the IPv6 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool.

public virtual Nullable<double> Ipv6NetmaskLength { get; set; }
Property Value

System.Nullable<System.Double>

Remarks

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

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-ipv6netmasklength

Ipv6Pool

The ID of an IPv6 address pool from which to allocate the IPv6 CIDR block.

public virtual string Ipv6Pool { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-ipv6pool

VpcId

The ID of the VPC.

public virtual string VpcId { get; set; }
Property Value

System.String

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-vpccidrblock.html#cfn-ec2-vpccidrblock-vpcid

Methods

Inspect(TreeInspector)

Examines the CloudFormation resource and discloses attributes.

public virtual void Inspect(TreeInspector inspector)
Parameters
inspector TreeInspector
  • tree inspector to collect and process attributes.

RenderProperties(IDictionary<String, Object>)

protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns

System.Collections.Generic.IDictionary<System.String, System.Object>

Overrides
CfnResource.RenderProperties(IDictionary<String, Object>)

Implements

IConstruct
Constructs.IConstruct
IDependable
IInspectable
Back to top Generated by DocFX