interface AwsIpamProps
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.EC2.AwsIpamProps |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsec2#AwsIpamProps |
![]() | software.amazon.awscdk.services.ec2.AwsIpamProps |
![]() | aws_cdk.aws_ec2.AwsIpamProps |
![]() | 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
Name | Type | Description |
---|---|---|
ipv4 | string | Ipam Pool Id for ipv4 allocation. |
ipv4 | number | Netmask length for Vpc. |
default | number | Default 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