Class Ipam
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.ec2.alpha.Ipam
- All Implemented Interfaces:
- IResource,- software.amazon.jsii.JsiiSerializable,- software.constructs.IConstruct,- software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
           date="2025-10-29T11:15:51.421Z")
@Stability(Experimental)
public class Ipam
extends Resource
(experimental) Creates new IPAM with default public and private scope.
 
Example:
 Stack stack = new Stack();
 Ipam ipam = Ipam.Builder.create(this, "Ipam")
         .operatingRegions(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 Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObjectsoftware.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstructsoftware.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IResourceIResource.Jsii$Default
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final String(experimental) Uniquely identifies this class.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddScope(software.constructs.Construct scope, String id, IpamScopeOptions options) (experimental) Function to add custom scope to an existing IPAM Custom scopes can only be private.(experimental) Access to Ipam resource id that can be used later to add a custom private scope to this IPAM.(experimental) IPAM name to be used for tagging.(experimental) List of operating regions for IPAM.(experimental) Provides access to default private IPAM scope through add pool method.(experimental) Provides access to default public IPAM scope through add pool method.(experimental) List of scopes created under this IPAM.Methods inherited from class software.amazon.awscdk.ResourceapplyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.ConstructgetNode, isConstruct, toStringMethods inherited from class software.amazon.jsii.JsiiObjectjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstructgetNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Field Details- 
PROPERTY_INJECTION_ID(experimental) Uniquely identifies this class.
 
- 
- 
Constructor Details- 
Ipamprotected Ipam(software.amazon.jsii.JsiiObjectRef objRef) 
- 
Ipamprotected Ipam(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) 
- 
Ipam@Stability(Experimental) public Ipam(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable IpamProps props) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- props-
 
- 
Ipam@Stability(Experimental) public Ipam(@NotNull software.constructs.Construct scope, @NotNull String id) - Parameters:
- scope- This parameter is required.
- id- This parameter is required.
 
 
- 
- 
Method Details- 
addScope@Stability(Experimental) @NotNull public IIpamScopeBase addScope(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull IpamScopeOptions options) (experimental) Function to add custom scope to an existing IPAM Custom scopes can only be private.- Parameters:
- scope- This parameter is required.
- id- This parameter is required.
- options- This parameter is required.
 
- 
getIpamId(experimental) Access to Ipam resource id that can be used later to add a custom private scope to this IPAM.
- 
getOperatingRegions(experimental) List of operating regions for IPAM.
- 
getPrivateScope(experimental) Provides access to default private IPAM scope through add pool method.Usage: To add an Ipam Pool to a default private scope - See Also:
 
- 
getPublicScope(experimental) Provides access to default public IPAM scope through add pool method.Usage: To add an Ipam Pool to a default public scope - See Also:
 
- 
getScopes(experimental) List of scopes created under this IPAM.
- 
getIpamName(experimental) IPAM name to be used for tagging.Default: no tag specified 
 
-