Class CfnIPAM
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.CfnIPAM
- All Implemented Interfaces:
IInspectable,IIPAMRef,IEnvironmentAware,ITaggable,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:02.919Z")
@Stability(Stable)
public class CfnIPAM
extends CfnResource
implements IInspectable, IIPAMRef, ITaggable
IPAM is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across AWS Regions and accounts throughout your AWS Organization.
For more information, see What is IPAM? in the Amazon VPC IPAM User Guide .
There are AWS Identity and Access Management (IAM) permissions required to fully manage an IPAM in CloudFormation. For more information, see Example policy in the Amazon VPC IPAM User Guide .
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.*;
CfnIPAM cfnIPAM = CfnIPAM.Builder.create(this, "MyCfnIPAM")
.defaultResourceDiscoveryOrganizationalUnitExclusions(List.of(IpamOrganizationalUnitExclusionProperty.builder()
.organizationsEntityPath("organizationsEntityPath")
.build()))
.description("description")
.enablePrivateGua(false)
.meteredAccount("meteredAccount")
.operatingRegions(List.of(IpamOperatingRegionProperty.builder()
.regionName("regionName")
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tier("tier")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnIPAM.static interfaceThe operating Regions for an IPAM.static interfaceIf your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM.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.IIPAMRef
IIPAMRef.Jsii$Default, IIPAMRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnIPAM(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIPAM(software.amazon.jsii.JsiiObjectRef objRef) Create a newAWS::EC2::IPAM.CfnIPAM(software.constructs.Construct scope, String id, CfnIPAMProps props) Create a newAWS::EC2::IPAM. -
Method Summary
Modifier and TypeMethodDescriptionstatic IIPAMReffromIPAMArn(software.constructs.Construct scope, String id, String arn) Creates a new IIPAMRef from an ARN.static IIPAMReffromIpamId(software.constructs.Construct scope, String id, String ipamId) Creates a new IIPAMRef from a ipamId.The ARN of the IPAM.The ID of the default resource discovery association.The ID of the default resource discovery.The ID of the IPAM.The ID of the default private scope.The ID of the default public scope.The number of resource discovery associations.The number of scopes.If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM.The description for the IPAM.Enable this option to use your own GUA ranges as private IPv6 addresses.A reference to a IPAM resource.A metered account is an AWS account that is charged for active IP addresses managed in IPAM.The operating Regions for an IPAM.getTags()Tag Manager which manages the tags for this resource.The key/value combination of a tag assigned to the resource.getTier()IPAM is offered in a Free Tier and an Advanced Tier.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidIf your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM.voidIf your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM.voidsetDescription(String value) The description for the IPAM.voidsetEnablePrivateGua(Boolean value) Enable this option to use your own GUA ranges as private IPv6 addresses.voidsetEnablePrivateGua(IResolvable value) Enable this option to use your own GUA ranges as private IPv6 addresses.voidsetMeteredAccount(String value) A metered account is an AWS account that is charged for active IP addresses managed in IPAM.voidsetOperatingRegions(List<Object> value) The operating Regions for an IPAM.voidsetOperatingRegions(IResolvable value) The operating Regions for an IPAM.voidsetTagsRaw(List<CfnTag> value) The key/value combination of a tag assigned to the resource.voidIPAM is offered in a Free Tier and an Advanced Tier.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
-
CfnIPAM
protected CfnIPAM(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIPAM
protected CfnIPAM(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIPAM
@Stability(Stable) public CfnIPAM(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnIPAMProps props) Create a newAWS::EC2::IPAM.- 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.
-
CfnIPAM
Create a newAWS::EC2::IPAM.- 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.
-
-
Method Details
-
fromIPAMArn
@Stability(Stable) @NotNull public static IIPAMRef fromIPAMArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IIPAMRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromIpamId
@Stability(Stable) @NotNull public static IIPAMRef fromIpamId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ipamId) Creates a new IIPAMRef from a ipamId.- Parameters:
scope- This parameter is required.id- This parameter is required.ipamId- 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. -
getAttrDefaultResourceDiscoveryAssociationId
The ID of the default resource discovery association. -
getAttrDefaultResourceDiscoveryId
The ID of the default resource discovery. -
getAttrIpamId
The ID of the IPAM. -
getAttrPrivateDefaultScopeId
The ID of the default private scope. -
getAttrPublicDefaultScopeId
The ID of the default public scope. -
getAttrResourceDiscoveryAssociationCount
The number of resource discovery associations. -
getAttrScopeCount
The number of scopes. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIpamRef
A reference to a IPAM resource.- Specified by:
getIpamRefin interfaceIIPAMRef
-
getTags
Tag Manager which manages the tags for this resource. -
getDefaultResourceDiscoveryOrganizationalUnitExclusions
@Stability(Stable) @Nullable public Object getDefaultResourceDiscoveryOrganizationalUnitExclusions()If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM. When you exclude an OU, IPAM will not manage the IP addresses in accounts in that OU. For more information, see Exclude organizational units from IPAM in the Amazon Virtual Private Cloud IP Address Manager User Guide .Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIPAM.IpamOrganizationalUnitExclusionProperty> -
setDefaultResourceDiscoveryOrganizationalUnitExclusions
@Stability(Stable) public void setDefaultResourceDiscoveryOrganizationalUnitExclusions(@Nullable IResolvable value) If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM. When you exclude an OU, IPAM will not manage the IP addresses in accounts in that OU. For more information, see Exclude organizational units from IPAM in the Amazon Virtual Private Cloud IP Address Manager User Guide . -
setDefaultResourceDiscoveryOrganizationalUnitExclusions
@Stability(Stable) public void setDefaultResourceDiscoveryOrganizationalUnitExclusions(@Nullable List<Object> value) If your IPAM is integrated with AWS Organizations, you can exclude an organizational unit (OU) from being managed by IPAM. When you exclude an OU, IPAM will not manage the IP addresses in accounts in that OU. For more information, see Exclude organizational units from IPAM in the Amazon Virtual Private Cloud IP Address Manager User Guide . -
getDescription
The description for the IPAM. -
setDescription
The description for the IPAM. -
getEnablePrivateGua
Enable this option to use your own GUA ranges as private IPv6 addresses.Returns union: either
BooleanorIResolvable -
setEnablePrivateGua
Enable this option to use your own GUA ranges as private IPv6 addresses. -
setEnablePrivateGua
Enable this option to use your own GUA ranges as private IPv6 addresses. -
getMeteredAccount
A metered account is an AWS account that is charged for active IP addresses managed in IPAM. -
setMeteredAccount
A metered account is an AWS account that is charged for active IP addresses managed in IPAM. -
getOperatingRegions
The operating Regions for an IPAM.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnIPAM.IpamOperatingRegionProperty> -
setOperatingRegions
The operating Regions for an IPAM. -
setOperatingRegions
The operating Regions for an IPAM. -
getTagsRaw
The key/value combination of a tag assigned to the resource. -
setTagsRaw
The key/value combination of a tag assigned to the resource. -
getTier
IPAM is offered in a Free Tier and an Advanced Tier. -
setTier
IPAM is offered in a Free Tier and an Advanced Tier.
-