Class CfnSubnetCidrBlock
A CloudFormation AWS::EC2::SubnetCidrBlock
.
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.AWS.EC2.dll
Syntax (csharp)
public class CfnSubnetCidrBlock : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnSubnetCidrBlock
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Associates a CIDR block with your subnet. You can associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.
CloudformationResource: AWS::EC2::SubnetCidrBlock
Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.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 cfnSubnetCidrBlock = new CfnSubnetCidrBlock(this, "MyCfnSubnetCidrBlock", new CfnSubnetCidrBlockProps {
Ipv6CidrBlock = "ipv6CidrBlock",
SubnetId = "subnetId"
});
Synopsis
Constructors
CfnSubnetCidrBlock(Construct, String, ICfnSubnetCidrBlockProps) | Create a new |
CfnSubnetCidrBlock(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnSubnetCidrBlock(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AttrId | The ID of the association. |
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
Ipv6CidrBlock | The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length. |
SubnetId | The ID of the subnet. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnSubnetCidrBlock(Construct, String, ICfnSubnetCidrBlockProps)
Create a new AWS::EC2::SubnetCidrBlock
.
public CfnSubnetCidrBlock(Construct scope, string id, ICfnSubnetCidrBlockProps props)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnSubnetCidrBlockProps
- resource properties.
CfnSubnetCidrBlock(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnSubnetCidrBlock(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnSubnetCidrBlock(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnSubnetCidrBlock(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AttrId
The ID of the association.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
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
Ipv6CidrBlock
The IPv6 network range for the subnet, in CIDR notation. The subnet size must use a /64 prefix length.
public virtual string Ipv6CidrBlock { get; set; }
Property Value
System.String
Remarks
This parameter is required for an IPv6 only subnet.
SubnetId
The ID of the subnet.
public virtual string SubnetId { get; set; }
Property Value
System.String
Remarks
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>