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

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

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

/**
 * (experimental) Represents the address family for IP addresses in an IPAM pool.
 * 

* IP_V4 - Represents the IPv4 address family. * IP_V6 - Represents the IPv6 address family. *

* 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-addressfamily */ @javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-11T15:56:07.909Z") @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.AddressFamily") public enum AddressFamily { /** * (experimental) Represents the IPv4 address family. *

* Allowed under public and private pool. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) IP_V4, /** * (experimental) Represents the IPv6 address family. *

* Only allowed under public pool. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) IP_V6, }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy