Class CfnIPAMScope
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.CfnIPAMScope
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IIPAMScopeRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.118.0 (build 02eec31)",
date="2025-11-10T13:40:02.959Z")
@Stability(Stable)
public class CfnIPAMScope
extends CfnResource
implements IInspectable, IIPAMScopeRef, ITaggable
In IPAM, a scope is the highest-level container within IPAM.
An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
For more information, see How IPAM works 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.*;
CfnIPAMScope cfnIPAMScope = CfnIPAMScope.Builder.create(this, "MyCfnIPAMScope")
.ipamId("ipamId")
// the properties below are optional
.description("description")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested 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.services.ec2.IIPAMScopeRef
IIPAMScopeRef.Jsii$Default, IIPAMScopeRef.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
ConstructorsModifierConstructorDescriptionprotectedCfnIPAMScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIPAMScope(software.amazon.jsii.JsiiObjectRef objRef) CfnIPAMScope(software.constructs.Construct scope, String id, CfnIPAMScopeProps props) -
Method Summary
Modifier and TypeMethodDescriptionstatic IIPAMScopeReffromIPAMScopeArn(software.constructs.Construct scope, String id, String arn) Creates a new IIPAMScopeRef from an ARN.static IIPAMScopeReffromIpamScopeId(software.constructs.Construct scope, String id, String ipamScopeId) Creates a new IIPAMScopeRef from a ipamScopeId.The ARN of the scope.The ARN of an IPAM.The ID of an IPAM scope.The type of the scope.Defines if the scope is the default scope or not.The number of pools in a scope.The description of the scope.The ID of the IPAM for which you're creating this scope.A reference to a IPAMScope resource.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.renderProperties(Map<String, Object> props) voidsetDescription(String value) The description of the scope.voidThe ID of the IPAM for which you're creating this scope.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.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
-
CfnIPAMScope
protected CfnIPAMScope(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIPAMScope
protected CfnIPAMScope(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIPAMScope
@Stability(Stable) public CfnIPAMScope(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnIPAMScopeProps props) - 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
-
fromIPAMScopeArn
@Stability(Stable) @NotNull public static IIPAMScopeRef fromIPAMScopeArn(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String arn) Creates a new IIPAMScopeRef from an ARN.- Parameters:
scope- This parameter is required.id- This parameter is required.arn- This parameter is required.
-
fromIpamScopeId
@Stability(Stable) @NotNull public static IIPAMScopeRef fromIpamScopeId(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull String ipamScopeId) Creates a new IIPAMScopeRef from a ipamScopeId.- Parameters:
scope- This parameter is required.id- This parameter is required.ipamScopeId- 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 scope. -
getAttrIpamArn
The ARN of an IPAM. -
getAttrIpamScopeId
The ID of an IPAM scope. -
getAttrIpamScopeType
The type of the scope. -
getAttrIsDefault
Defines if the scope is the default scope or not. -
getAttrPoolCount
The number of pools in a scope. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getIpamScopeRef
A reference to a IPAMScope resource.- Specified by:
getIpamScopeRefin interfaceIIPAMScopeRef
-
getTags
Tag Manager which manages the tags for this resource. -
getIpamId
The ID of the IPAM for which you're creating this scope. -
setIpamId
The ID of the IPAM for which you're creating this scope. -
getDescription
The description of the scope. -
setDescription
The description of the scope. -
getTagsRaw
The key/value combination of a tag assigned to the resource. -
setTagsRaw
The key/value combination of a tag assigned to the resource.
-