interface IpamProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.IpamProps |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#IpamProps |
Java | software.amazon.awscdk.services.ec2.alpha.IpamProps |
Python | aws_cdk.aws_ec2_alpha.IpamProps |
TypeScript (source) | @aws-cdk/aws-ec2-alpha » IpamProps |
Options to create a new Ipam in the account.
Example
const stack = new Stack();
const ipam = new Ipam(this, 'Ipam', {
operatingRegion: ['us-west-1']
});
const ipamPublicPool = ipam.publicScope.addPool('PublicPoolA', {
addressFamily: AddressFamily.IP_V6,
awsService: AwsServiceName.EC2,
locale: 'us-west-1',
publicIpSource: IpamPoolPublicIpSource.AMAZON,
});
ipamPublicPool.provisionCidr('PublicPoolACidrA', { netmaskLength: 52 } );
const ipamPrivatePool = ipam.privateScope.addPool('PrivatePoolA', {
addressFamily: AddressFamily.IP_V4,
});
ipamPrivatePool.provisionCidr('PrivatePoolACidrA', { netmaskLength: 8 } );
new VpcV2(this, 'Vpc', {
primaryAddressBlock: IpAddresses.ipv4('10.0.0.0/24'),
secondaryAddressBlocks: [
IpAddresses.amazonProvidedIpv6({ cidrBlockName: 'AmazonIpv6' }),
IpAddresses.ipv6Ipam({
ipamPool: ipamPublicPool,
netmaskLength: 52,
cidrBlockName: 'ipv6Ipam',
}),
IpAddresses.ipv4Ipam({
ipamPool: ipamPrivatePool,
netmaskLength: 8,
cidrBlockName: 'ipv4Ipam',
}),
],
});
Properties
Name | Type | Description |
---|---|---|
ipam | string | Name of IPAM that can be used for tagging resource. |
operating | string[] | The operating Regions for an IPAM. |
ipamName?
Type:
string
(optional, default: If no name provided, no tags will be added to the IPAM)
Name of IPAM that can be used for tagging resource.
operatingRegion?
Type:
string[]
(optional, default: Stack.region if defined in the stack)
The operating Regions for an IPAM.
Operating Regions are AWS Regions where the IPAM is allowed to manage IP address CIDRs For more information about operating Regions, see Create an IPAM in the Amazon VPC IPAM User Guide .