Class CfnIPAMPool
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.ec2.CfnIPAMPool
- All Implemented Interfaces:
IInspectable,IIPAMPoolRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:34.767Z")
@Stability(Stable)
public class CfnIPAMPool
extends CfnResource
implements IInspectable, IIPAMPoolRef, ITaggable
In IPAM, a pool is a collection of contiguous IP addresses CIDRs.
Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
CfnIPAMPool cfnIPAMPool = CfnIPAMPool.Builder.create(this, "MyCfnIPAMPool")
.addressFamily("addressFamily")
.ipamScopeId("ipamScopeId")
// the properties below are optional
.allocationDefaultNetmaskLength(123)
.allocationMaxNetmaskLength(123)
.allocationMinNetmaskLength(123)
.allocationResourceTags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.autoImport(false)
.awsService("awsService")
.description("description")
.locale("locale")
.provisionedCidrs(List.of(ProvisionedCidrProperty.builder()
.cidr("cidr")
.build()))
.publicIpSource("publicIpSource")
.publiclyAdvertisable(false)
.sourceIpamPoolId("sourceIpamPoolId")
.sourceResource(SourceResourceProperty.builder()
.resourceId("resourceId")
.resourceOwner("resourceOwner")
.resourceRegion("resourceRegion")
.resourceType("resourceType")
.build())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIPAMPool.static interfaceThe CIDR provisioned to the IPAM pool.static interfaceThe resource used to provision CIDRs to a resource planning pool.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.ec2.IIPAMPoolRef
IIPAMPoolRef.Jsii$Default, IIPAMPoolRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIPAMPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIPAMPool(software.amazon.jsii.JsiiObjectRef objRef) CfnIPAMPool(software.constructs.Construct scope, String id, CfnIPAMPoolProps props) Create a newAWS::EC2::IPAMPool. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForIPAMPool(IIPAMPoolRef resource) static IIPAMPoolReffromIPAMPoolArn(software.constructs.Construct scope, String id, String arn) Creates a new IIPAMPoolRef from an ARN.static IIPAMPoolReffromIpamPoolId(software.constructs.Construct scope, String id, String ipamPoolId) Creates a new IIPAMPoolRef from a ipamPoolId.The address family of the pool.The default netmask length for allocations added to this pool.The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant.The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant.Tags that are required for resources that use CIDRs from this IPAM pool.The ARN of the IPAM pool.The ARN of the IPAM.The ID of the IPAM pool.The ARN of the scope of the IPAM pool.The scope of the IPAM.The depth of pools in your IPAM pool.The state of the IPAM pool.A message related to the failed creation of an IPAM pool.If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.Limits which service in AWS that the pool can be used in.The description of the IPAM pool.A reference to a IPAMPool resource.The ID of the scope in which you would like to create the IPAM pool.The locale of the IPAM pool.Information about the CIDRs provisioned to an IPAM pool.The IP address source for pools in the public scope.Determines if a pool is publicly advertisable.The ID of the source IPAM pool.The resource used to provision CIDRs to a resource planning pool.getTags()Tag Manager which manages the tags for this resource.The key/value combination of a tag assigned to the resource.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnIPAMPool.renderProperties(Map<String, Object> props) voidsetAddressFamily(String value) The address family of the pool.voidThe default netmask length for allocations added to this pool.voidThe maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant.voidThe minimum netmask length required for CIDR allocations in this IPAM pool to be compliant.voidsetAllocationResourceTags(List<Object> value) Tags that are required for resources that use CIDRs from this IPAM pool.voidTags that are required for resources that use CIDRs from this IPAM pool.voidsetAutoImport(Boolean value) If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.voidsetAutoImport(IResolvable value) If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.voidsetAwsService(String value) Limits which service in AWS that the pool can be used in.voidsetDescription(String value) The description of the IPAM pool.voidsetIpamScopeId(String value) The ID of the scope in which you would like to create the IPAM pool.voidThe locale of the IPAM pool.voidsetProvisionedCidrs(List<Object> value) Information about the CIDRs provisioned to an IPAM pool.voidsetProvisionedCidrs(IResolvable value) Information about the CIDRs provisioned to an IPAM pool.voidsetPublicIpSource(String value) The IP address source for pools in the public scope.voidsetPubliclyAdvertisable(Boolean value) Determines if a pool is publicly advertisable.voidDetermines if a pool is publicly advertisable.voidsetSourceIpamPoolId(String value) The ID of the source IPAM pool.voidsetSourceResource(IResolvable value) The resource used to provision CIDRs to a resource planning pool.voidThe resource used to provision CIDRs to a resource planning pool.voidsetTagsRaw(List<CfnTag> value) The key/value combination of a tag assigned to the resource.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnIPAMPool
protected CfnIPAMPool(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIPAMPool
protected CfnIPAMPool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIPAMPool
@Stability(Stable) public CfnIPAMPool(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIPAMPoolProps props) Create a newAWS::EC2::IPAMPool.- Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForIPAMPool
- Parameters:
resource- This parameter is required.
-
fromIPAMPoolArn
@Stability(Stable) @NotNull public static IIPAMPoolRef fromIPAMPoolArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IIPAMPoolRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromIpamPoolId
@Stability(Stable) @NotNull public static IIPAMPoolRef fromIpamPoolId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ipamPoolId) Creates a new IIPAMPoolRef from a ipamPoolId.- Parameters:
scope- This parameter is required.id- This parameter is required.ipamPoolId- This parameter is required.
-
isCfnIPAMPool
Checks whether the given object is a CfnIPAMPool.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrArn
The ARN of the IPAM pool. -
getAttrIpamArn
The ARN of the IPAM. -
getAttrIpamPoolId
The ID of the IPAM pool. -
getAttrIpamScopeArn
The ARN of the scope of the IPAM pool. -
getAttrIpamScopeType
The scope of the IPAM. -
getAttrPoolDepth
The depth of pools in your IPAM pool.The pool depth quota is 10.
-
getAttrState
The state of the IPAM pool. -
getAttrStateMessage
A message related to the failed creation of an IPAM pool. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIpamPoolRef
A reference to a IPAMPool resource.- Specified by:
getIpamPoolRefin interfaceIIPAMPoolRef
-
getTags
Tag Manager which manages the tags for this resource. -
getAddressFamily
The address family of the pool. -
setAddressFamily
The address family of the pool. -
getIpamScopeId
The ID of the scope in which you would like to create the IPAM pool. -
setIpamScopeId
The ID of the scope in which you would like to create the IPAM pool. -
getAllocationDefaultNetmaskLength
The default netmask length for allocations added to this pool. -
setAllocationDefaultNetmaskLength
The default netmask length for allocations added to this pool. -
getAllocationMaxNetmaskLength
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. -
setAllocationMaxNetmaskLength
The maximum netmask length possible for CIDR allocations in this IPAM pool to be compliant. -
getAllocationMinNetmaskLength
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. -
setAllocationMinNetmaskLength
The minimum netmask length required for CIDR allocations in this IPAM pool to be compliant. -
getAllocationResourceTags
Tags that are required for resources that use CIDRs from this IPAM pool.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnTag> -
setAllocationResourceTags
Tags that are required for resources that use CIDRs from this IPAM pool. -
setAllocationResourceTags
Tags that are required for resources that use CIDRs from this IPAM pool. -
getAutoImport
If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM.Returns union: either
BooleanorIResolvable -
setAutoImport
If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. -
setAutoImport
If selected, IPAM will continuously look for resources within the CIDR range of this pool and automatically import them as allocations into your IPAM. -
getAwsService
Limits which service in AWS that the pool can be used in. -
setAwsService
Limits which service in AWS that the pool can be used in. -
getDescription
The description of the IPAM pool. -
setDescription
The description of the IPAM pool. -
getLocale
The locale of the IPAM pool. -
setLocale
The locale of the IPAM pool. -
getProvisionedCidrs
Information about the CIDRs provisioned to an IPAM pool.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIPAMPool.ProvisionedCidrProperty> -
setProvisionedCidrs
Information about the CIDRs provisioned to an IPAM pool. -
setProvisionedCidrs
Information about the CIDRs provisioned to an IPAM pool. -
getPublicIpSource
The IP address source for pools in the public scope. -
setPublicIpSource
The IP address source for pools in the public scope. -
getPubliclyAdvertisable
Determines if a pool is publicly advertisable.Returns union: either
BooleanorIResolvable -
setPubliclyAdvertisable
Determines if a pool is publicly advertisable. -
setPubliclyAdvertisable
Determines if a pool is publicly advertisable. -
getSourceIpamPoolId
The ID of the source IPAM pool. -
setSourceIpamPoolId
The ID of the source IPAM pool. -
getSourceResource
The resource used to provision CIDRs to a resource planning pool.Returns union: either
IResolvableorCfnIPAMPool.SourceResourceProperty -
setSourceResource
The resource used to provision CIDRs to a resource planning pool. -
setSourceResource
@Stability(Stable) public void setSourceResource(@Nullable CfnIPAMPool.SourceResourceProperty value) The resource used to provision CIDRs to a resource planning pool. -
getTagsRaw
The key/value combination of a tag assigned to the resource. -
setTagsRaw
The key/value combination of a tag assigned to the resource.
-