Class CfnVPCCidrBlock
A CloudFormation AWS::EC2::VPCCidrBlock
.
Inherited Members
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
Cfn |
Create a new |
Cfn |
Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Cfn |
Used by jsii to construct an instance of this class from DeputyProps |
Properties
Amazon |
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. |
Cfn |
|
Cidr |
An IPv4 CIDR block to associate with the VPC. |
Ipv4Ipam |
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC. |
Ipv4Netmask |
The netmask length of the IPv4 CIDR you would like to associate from an Amazon VPC IP Address Manager (IPAM) pool. |
Ipv6Cidr |
An IPv6 CIDR block from the IPv6 address pool. You must also specify |
Ipv6Ipam |
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC. |
Ipv6Netmask |
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. |
Vpc |
The ID of the VPC. |
Methods
Inspect(Tree |
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 ICfn
VPCCidr Block Props - 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. By Ref Value 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. Deputy Base. Deputy Props 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.
Remarks
You cannot specify the range of IPv6 addresses, or the size of the CIDR block.
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.
Overrides
CidrBlock
An IPv4 CIDR block to associate with the VPC.
public virtual string CidrBlock { get; set; }
Property Value
System.
Remarks
Ipv4IpamPoolId
Associate a CIDR allocated from an IPv4 IPAM pool to a VPC.
public virtual string Ipv4IpamPoolId { get; set; }
Property Value
System.
Remarks
For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
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.
Remarks
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
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.
Remarks
To let Amazon choose the IPv6 CIDR block for you, omit this parameter.
Ipv6IpamPoolId
Associates a CIDR allocated from an IPv6 IPAM pool to a VPC.
public virtual string Ipv6IpamPoolId { get; set; }
Property Value
System.
Remarks
For more information about Amazon VPC IP Address Manager (IPAM), see What is IPAM? in the Amazon VPC IPAM User Guide .
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.
Remarks
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide .
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.
Remarks
VpcId
The ID of the VPC.
public virtual string VpcId { get; set; }
Property Value
System.
Remarks
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector Tree
Inspector - 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. <System.Generic. IDictionary String , System.Object >
Returns
System.