Skip to content
v2.278.0

CfnSubnetCidrBlockProps Struct ​

Properties for defining a CfnSubnetCidrBlock.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const cfnSubnetCidrBlockProps: ec2.CfnSubnetCidrBlockProps = {
  subnetId: 'subnetId',

  // the properties below are optional
  ipv6CidrBlock: 'ipv6CidrBlock',
  ipv6IpamPoolId: 'ipv6IpamPoolId',
  ipv6NetmaskLength: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_ec2 as ec2

cfn_subnet_cidr_block_props = ec2.CfnSubnetCidrBlockProps(
    subnet_id="subnetId",

    # the properties below are optional
    ipv6_cidr_block="ipv6CidrBlock",
    ipv6_ipam_pool_id="ipv6IpamPoolId",
    ipv6_netmask_length=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;

CfnSubnetCidrBlockProps cfnSubnetCidrBlockProps = CfnSubnetCidrBlockProps.builder()
        .subnetId("subnetId")

        // the properties below are optional
        .ipv6CidrBlock("ipv6CidrBlock")
        .ipv6IpamPoolId("ipv6IpamPoolId")
        .ipv6NetmaskLength(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 cfnSubnetCidrBlockProps = new CfnSubnetCidrBlockProps {
    SubnetId = "subnetId",

    // the properties below are optional
    Ipv6CidrBlock = "ipv6CidrBlock",
    Ipv6IpamPoolId = "ipv6IpamPoolId",
    Ipv6NetmaskLength = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnSubnetCidrBlockProps := &CfnSubnetCidrBlockProps{
	SubnetId: jsii.String("subnetId"),

	// the properties below are optional
	Ipv6CidrBlock: jsii.String("ipv6CidrBlock"),
	Ipv6IpamPoolId: jsii.String("ipv6IpamPoolId"),
	Ipv6NetmaskLength: jsii.Number(123),
}

Properties ​

ipv6CidrBlockoptionalstringipv6_cidr_blockoptionalstripv6CidrBlockoptionalStringIpv6CidrBlockoptionalstringIpv6CidrBlockoptional*string #
The IPv6 network range for the subnet, in CIDR notation.
ipv6IpamPoolIdoptionalstringipv6_ipam_pool_idoptionalstripv6IpamPoolIdoptionalStringIpv6IpamPoolIdoptionalstringIpv6IpamPoolIdoptional*string #
An IPv6 IPAM pool ID for the subnet.
ipv6NetmaskLengthoptionalnumberipv6_netmask_lengthoptionalint | floatipv6NetmaskLengthoptionalNumberIpv6NetmaskLengthoptionaldoubleIpv6NetmaskLengthoptional*float64 #
An IPv6 netmask length for the subnet.
subnetIdstring | ISubnetRefsubnet_idtyping.Union[str, ISubnetRef]subnetIdStringSubnetIdstringSubnetIdinterface{} required #
The ID of the subnet.