All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awscdk.services.ec2.alpha.IpamPoolPublicIpSource Maven / Gradle / Ivy

There is a newer version: 2.167.2-alpha.0
Show newest version
package software.amazon.awscdk.services.ec2.alpha;

/**
 * (experimental) The IP address source for pools in the public scope.
 * 

* Only used for provisioning IP address CIDRs to pools in the public scope. *

* Example: *

*

 * Stack stack = new Stack();
 * Ipam ipam = Ipam.Builder.create(this, "Ipam")
 *         .operatingRegion(List.of("us-west-1"))
 *         .build();
 * IIpamPool ipamPublicPool = ipam.publicScope.addPool("PublicPoolA", PoolOptions.builder()
 *         .addressFamily(AddressFamily.IP_V6)
 *         .awsService(AwsServiceName.EC2)
 *         .locale("us-west-1")
 *         .publicIpSource(IpamPoolPublicIpSource.AMAZON)
 *         .build());
 * ipamPublicPool.provisionCidr("PublicPoolACidrA", IpamPoolCidrProvisioningOptions.builder().netmaskLength(52).build());
 * IIpamPool ipamPrivatePool = ipam.privateScope.addPool("PrivatePoolA", PoolOptions.builder()
 *         .addressFamily(AddressFamily.IP_V4)
 *         .build());
 * ipamPrivatePool.provisionCidr("PrivatePoolACidrA", IpamPoolCidrProvisioningOptions.builder().netmaskLength(8).build());
 * VpcV2.Builder.create(this, "Vpc")
 *         .primaryAddressBlock(IpAddresses.ipv4("10.0.0.0/24"))
 *         .secondaryAddressBlocks(List.of(IpAddresses.amazonProvidedIpv6(SecondaryAddressProps.builder().cidrBlockName("AmazonIpv6").build()), IpAddresses.ipv6Ipam(IpamOptions.builder()
 *                 .ipamPool(ipamPublicPool)
 *                 .netmaskLength(52)
 *                 .cidrBlockName("ipv6Ipam")
 *                 .build()), IpAddresses.ipv4Ipam(IpamOptions.builder()
 *                 .ipamPool(ipamPrivatePool)
 *                 .netmaskLength(8)
 *                 .cidrBlockName("ipv4Ipam")
 *                 .build())))
 *         .build();
 * 
*

* @see https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-ec2-ipampool.html#cfn-ec2-ipampool-publicipsource */ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T15:56:07.919Z") @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @software.amazon.jsii.Jsii(module = software.amazon.awscdk.services.ec2.alpha.$Module.class, fqn = "@aws-cdk/aws-ec2-alpha.IpamPoolPublicIpSource") public enum IpamPoolPublicIpSource { /** * (experimental) BYOIP Ipv6 to be registered under IPAM. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) BYOIP, /** * (experimental) Amazon Provided Ipv6 range. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) AMAZON, }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy