AWS::EC2::SubnetCidrBlockAssociates a CIDR block with your subnet. You can associate a single IPv6 CIDR block with your subnet.
import { CfnSubnetCidrBlock } from 'aws-cdk-lib/aws-ec2';Or use the module namespace:
import * as ec2 from 'aws-cdk-lib/aws-ec2';
// ec2.CfnSubnetCidrBlockConfiguration passed to the constructor as CfnSubnetCidrBlockProps.
subnetIdRequiredstring | ISubnetRefThe ID of the subnet.
ipv6CidrBlockOptionalstringThe IPv6 network range for the subnet, in CIDR notation.
ipv6IpamPoolIdOptionalstringAn IPv6 IPAM pool ID for the subnet.
ipv6NetmaskLengthOptionalnumberAn IPv6 netmask length for the subnet.
This L1 construct maps directly to the following CloudFormation resource type.
Everything you need to know about Amazon EC2 on one page. HD quality, print-friendly.
Download Free Infographicaws-ec2AWS::EC2::SubnetCidrBlock