Experimental
@aws-cdk/aws-ec2-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.
Ipv6PoolSecondaryAddressProps Struct
Additional props needed for BYOIP IPv6 address props.
Example
ts
const myVpc = new VpcV2(this, 'Vpc', {
primaryAddressBlock: IpAddresses.ipv4('10.1.0.0/16'),
secondaryAddressBlocks: [IpAddresses.ipv6ByoipPool({
cidrBlockName: 'MyByoipCidrBlock',
ipv6PoolId: 'ipv6pool-ec2-someHashValue',
ipv6CidrBlock: '2001:db8::/32'
})],
enableDnsHostnames: true,
enableDnsSupport: true,
});
Properties
cidrBlockNamestringcidr_block_namestrcidrBlockNameStringCidrBlockNamestringCidrBlockName*stringrequired#Required to set Secondary cidr block resource name in order to generate unique logical id for the resource.
ipv6CidrBlockstringipv6_cidr_blockstripv6CidrBlockStringIpv6CidrBlockstringIpv6CidrBlock*stringrequired#A valid IPv6 CIDR block from the IPv6 address pool onboarded to AWS using BYOIP.
The most specific IPv6 address range that you can bring is /48 for CIDRs that are publicly advertisable and /56 for CIDRs that are not publicly advertisable.
ID of the IPv6 address pool from which to allocate the IPv6 CIDR block.
Note: BYOIP Pool ID is different from the IPAM Pool ID. To onboard your IPv6 address range to your AWS account please refer to the below documentation