aws-cdk-lib.aws_ec2.AwsIpamProps

interface AwsIpamProps

LanguageType name
.NETAmazon.CDK.AWS.EC2.AwsIpamProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsec2#AwsIpamProps
Javasoftware.amazon.awscdk.services.ec2.AwsIpamProps
Pythonaws_cdk.aws_ec2.AwsIpamProps
TypeScript (source)aws-cdk-lib » aws_ec2 » AwsIpamProps

Configuration for AwsIpam.

Example

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

NameTypeDescription
ipv4IpamPoolIdstringIpam Pool Id for ipv4 allocation.
ipv4NetmaskLengthnumberNetmask length for Vpc.
defaultSubnetIpv4NetmaskLength?numberDefault length for Subnet ipv4 Network mask.

ipv4IpamPoolId

Type: string

Ipam Pool Id for ipv4 allocation.


ipv4NetmaskLength

Type: number

Netmask length for Vpc.


defaultSubnetIpv4NetmaskLength?

Type: number (optional, default: Default ipv4 Subnet Mask for subnets in Vpc)

Default length for Subnet ipv4 Network mask.

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