Skip to content
v2.273.0

AwsIpamProps Struct ​

Configuration for AwsIpam.

Example ​

ts
import { IpAddresses } from 'aws-cdk-lib/aws-ec2';

declare const pool: ec2.CfnIPAMPool;

new ec2.Vpc(this, 'TheVPC', {
  ipAddresses: IpAddresses.awsIpamAllocation({
    ipv4IpamPoolId: pool.ref,
    ipv4NetmaskLength: 18,
    defaultSubnetIpv4NetmaskLength: 24
  })
});

Properties ​

defaultSubnetIpv4NetmaskLengthnumberdefault_subnet_ipv4_netmask_lengthint | floatdefaultSubnetIpv4NetmaskLengthNumberDefaultSubnetIpv4NetmaskLengthdoubleDefaultSubnetIpv4NetmaskLength*float64= Default ipv4 Subnet Mask for sub…#
Default length for Subnet ipv4 Network mask.

Specify this option only if you do not specify all Subnets using SubnetConfiguration with a cidrMask

default

Default: Default ipv4 Subnet Mask for subnets in Vpc

ipv4IpamPoolIdstringipv4_ipam_pool_idstripv4IpamPoolIdStringIpv4IpamPoolIdstringIpv4IpamPoolId*stringrequired#
Ipam Pool Id for ipv4 allocation.
ipv4NetmaskLengthnumberipv4_netmask_lengthint | floatipv4NetmaskLengthNumberIpv4NetmaskLengthdoubleIpv4NetmaskLength*float64required#
Netmask length for Vpc.