Skip to content
v2.274.0

AllocatedSubnet Struct ​

CIDR Allocated Subnet.

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 allocatedSubnet: ec2.AllocatedSubnet = {
  cidr: 'cidr',

  // the properties below are optional
  ipv6Cidr: 'ipv6Cidr',
};

Properties ​

cidrstringcidrstrcidrStringCidrstringCidr*stringrequired#
IPv4 CIDR Allocations for a Subnet.

Note this is specific to the IPv4 CIDR.

ipv6Cidroptionalstringipv6_cidroptionalstripv6CidroptionalStringIpv6CidroptionalstringIpv6Cidroptional*string#
IPv6 CIDR Allocations for a Subnet.

Default: no IPV6 CIDR

Note this is specific to the IPv6 CIDR.