enum IpamPoolPublicIpSource
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.ec2.Alpha.IpamPoolPublicIpSource |
Go | github.com/aws/aws-cdk-go/awsec2alpha/v2#IpamPoolPublicIpSource |
Java | software.amazon.awscdk.services.ec2.alpha.IpamPoolPublicIpSource |
Python | aws_cdk.aws_ec2_alpha.IpamPoolPublicIpSource |
TypeScript (source) | @aws-cdk/aws-ec2-alpha » IpamPoolPublicIpSource |
The IP address source for pools in the public scope.
Only used for provisioning IP address CIDRs to pools in the public scope.
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',
}),
],
});
Members
Name | Description |
---|---|
BYOIP | BYOIP Ipv6 to be registered under IPAM. |
AMAZON | Amazon Provided Ipv6 range. |
BYOIP
BYOIP Ipv6 to be registered under IPAM.
AMAZON
Amazon Provided Ipv6 range.