Class CfnSubnetCidrBlock
Associates a CIDR block with your subnet.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.EC2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnSubnetCidrBlock : CfnResource, IInspectable
Syntax (vb)
Public Class CfnSubnetCidrBlock
Inherits CfnResource
Implements IInspectable
Remarks
You can associate a single IPv6 CIDR block with your subnet.
See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-subnetcidrblock.html
CloudformationResource: AWS::EC2::SubnetCidrBlock
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 {
SubnetId = "subnetId",
// the properties below are optional
Ipv6CidrBlock = "ipv6CidrBlock",
Ipv6IpamPoolId = "ipv6IpamPoolId",
Ipv6NetmaskLength = 123
});
Synopsis
Constructors
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 |
CfnSubnetCidrBlock(Construct, String, ICfnSubnetCidrBlockProps) |
Properties
AttrId | The ID of the association. |
AttrIpSource | The source that allocated the IP address space. |
AttrIpv6AddressAttribute | Public IPv6 addresses are those advertised on the internet from AWS . |
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. |
Ipv6IpamPoolId | An IPv6 IPAM pool ID for the subnet. |
Ipv6NetmaskLength | An IPv6 netmask length for the subnet. |
SubnetId | The ID of the subnet. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
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
CfnSubnetCidrBlock(Construct, String, ICfnSubnetCidrBlockProps)
public CfnSubnetCidrBlock(Construct scope, string id, ICfnSubnetCidrBlockProps props)
Parameters
- scope Constructs.Construct
Scope in which this resource is defined.
- id System.String
Construct identifier for this resource (unique in its scope).
- props ICfnSubnetCidrBlockProps
Resource properties.
Properties
AttrId
The ID of the association.
public virtual string AttrId { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Id
AttrIpSource
The source that allocated the IP address space.
public virtual string AttrIpSource { get; }
Property Value
System.String
Remarks
byoip
or amazon
indicates public IP address space allocated by Amazon or space that you have allocated with Bring your own IP (BYOIP). none
indicates private space.
CloudformationAttribute: IpSource
AttrIpv6AddressAttribute
Public IPv6 addresses are those advertised on the internet from AWS .
public virtual string AttrIpv6AddressAttribute { get; }
Property Value
System.String
Remarks
Private IP addresses are not and cannot be advertised on the internet from AWS .
CloudformationAttribute: Ipv6AddressAttribute
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.
public virtual string Ipv6CidrBlock { get; set; }
Property Value
System.String
Ipv6IpamPoolId
An IPv6 IPAM pool ID for the subnet.
public virtual string Ipv6IpamPoolId { get; set; }
Property Value
System.String
Ipv6NetmaskLength
An IPv6 netmask length for the subnet.
public virtual Nullable<double> Ipv6NetmaskLength { get; set; }
Property Value
System.Nullable<System.Double>
SubnetId
The ID of the subnet.
public virtual string SubnetId { get; set; }
Property Value
System.String
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>