aws-cdk-lib.aws_ec2.CfnIPAMPoolCidrProps

interface CfnIPAMPoolCidrProps

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

Properties for defining a CfnIPAMPoolCidr.

Example

// 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 cfnIPAMPoolCidrProps: ec2.CfnIPAMPoolCidrProps = {
  ipamPoolId: 'ipamPoolId',

  // the properties below are optional
  cidr: 'cidr',
  netmaskLength: 123,
};

Properties

NameTypeDescription
ipamPoolIdstringThe ID of the IPAM pool.
cidr?stringThe CIDR provisioned to the IPAM pool.
netmaskLength?numberThe netmask length of the CIDR you'd like to provision to a pool.

ipamPoolId

Type: string

The ID of the IPAM pool.


cidr?

Type: string (optional)

The CIDR provisioned to the IPAM pool.

A CIDR is a representation of an IP address and its associated network mask (or netmask) and refers to a range of IP addresses. An IPv4 CIDR example is 10.24.34.0/23 . An IPv6 CIDR example is 2001:DB8::/32 .


netmaskLength?

Type: number (optional)

The netmask length of the CIDR you'd like to provision to a pool.

Can be used for provisioning Amazon-provided IPv6 CIDRs to top-level pools and for provisioning CIDRs to pools with source pools. Cannot be used to provision BYOIP CIDRs to top-level pools. "NetmaskLength" or "Cidr" is required.