Class CfnIPv4Pool
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.CfnIPv4Pool
- All Implemented Interfaces:
IInspectable,IIPv4PoolRef,IEnvironmentAware,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:04:49.989Z")
@Stability(Stable)
public class CfnIPv4Pool
extends CfnResource
implements IInspectable, IIPv4PoolRef, ITaggableV2
Resource Type definition for AWS::EC2::IPv4Pool.
A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to AWS to manage with IPAM (BYOIP).
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.*;
CfnIPv4Pool cfnIPv4Pool = CfnIPv4Pool.Builder.create(this, "MyCfnIPv4Pool")
.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.interfaces.ec2.IIPv4PoolRef
IIPv4PoolRef.Jsii$Default, IIPv4PoolRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnIPv4Pool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnIPv4Pool(software.amazon.jsii.JsiiObjectRef objRef) CfnIPv4Pool(software.constructs.Construct scope, String id) Create a newAWS::EC2::IPv4Pool.CfnIPv4Pool(software.constructs.Construct scope, String id, CfnIPv4PoolProps props) Create a newAWS::EC2::IPv4Pool. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForIPv4Pool(IIPv4PoolRef resource) The Amazon Resource Name (ARN) of the public IPv4 pool.A description of the public IPv4 pool.The name of the location from which the address pool is advertised.The ID of the public IPv4 pool.The total number of addresses in the pool.The total number of available addresses in the pool.Tag Manager which manages the tags for this resource.A reference to a IPv4Pool resource.getTags()Any tags assigned to the public IPv4 pool.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnIPv4Pool.renderProperties(Map<String, Object> props) voidAny tags assigned to the public IPv4 pool.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods 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
getNode, withMethods 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
-
CfnIPv4Pool
protected CfnIPv4Pool(software.amazon.jsii.JsiiObjectRef objRef) -
CfnIPv4Pool
protected CfnIPv4Pool(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnIPv4Pool
@Stability(Stable) public CfnIPv4Pool(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnIPv4PoolProps props) Create a newAWS::EC2::IPv4Pool.- 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.
-
CfnIPv4Pool
@Stability(Stable) public CfnIPv4Pool(@NotNull software.constructs.Construct scope, @NotNull String id) Create a newAWS::EC2::IPv4Pool.- 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
-
arnForIPv4Pool
- Parameters:
resource- This parameter is required.
-
isCfnIPv4Pool
Checks whether the given object is a CfnIPv4Pool.- 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 Amazon Resource Name (ARN) of the public IPv4 pool. -
getAttrDescription
A description of the public IPv4 pool. -
getAttrNetworkBorderGroup
The name of the location from which the address pool is advertised. -
getAttrPoolId
The ID of the public IPv4 pool. -
getAttrTotalAddressCount
The total number of addresses in the pool. -
getAttrTotalAvailableAddressCount
The total number of available addresses in the pool. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getIPv4PoolRef
A reference to a IPv4Pool resource.- Specified by:
getIPv4PoolRefin interfaceIIPv4PoolRef
-
getTags
Any tags assigned to the public IPv4 pool. -
setTags
Any tags assigned to the public IPv4 pool.
-