Class CfnEIP
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.CfnEIP
- All Implemented Interfaces:
IEnvironmentAware,IInspectable,ITaggable,IEIPRef,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.864Z")
@Stability(Stable)
public class CfnEIP
extends CfnResource
implements IInspectable, IEIPRef, ITaggable
Specifies an Elastic IP (EIP) address and can, optionally, associate it with an Amazon EC2 instance.
You can allocate an Elastic IP address from an address pool owned by AWS or from an address pool created from a public IPv4 address range that you have brought to AWS for use with your AWS resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon EC2 User Guide .
For more information, see Elastic IP Addresses in the Amazon EC2 User Guide .
Example:
Listener listener;
CfnEIP eip;
listener.addEndpointGroup("Group", EndpointGroupOptions.builder()
.endpoints(List.of(
CfnEipEndpoint.Builder.create(eip)
.weight(128)
.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.services.ec2.IEIPRef
IEIPRef.Jsii$Default, IEIPRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.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
ConstructorsModifierConstructorDescriptionprotectedCfnEIP(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnEIP(software.amazon.jsii.JsiiObjectRef objRef) CfnEIP(software.constructs.Construct scope, String id, CfnEIPProps props) -
Method Summary
Modifier and TypeMethodDescriptionAn Elastic IP address or a carrier IP address in a Wavelength Zone.The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC.The Elastic IP address.The network (vpc).A reference to a EIP resource.The ID of the instance.The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.The ID of an address pool that you own.getTags()Tag Manager which manages the tags for this resource.Any tags assigned to the Elastic IP address.The Elastic IP address you are accepting for transfer.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidsetAddress(String value) An Elastic IP address or a carrier IP address in a Wavelength Zone.voidThe network (vpc).voidsetInstanceId(String value) The ID of the instance.voidsetIpamPoolId(String value) The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it.voidsetNetworkBorderGroup(String value) A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses.voidsetPublicIpv4Pool(String value) The ID of an address pool that you own.voidsetTagsRaw(List<CfnTag> value) Any tags assigned to the Elastic IP address.voidsetTransferAddress(String value) The Elastic IP address you are accepting for transfer.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
-
CfnEIP
protected CfnEIP(software.amazon.jsii.JsiiObjectRef objRef) -
CfnEIP
protected CfnEIP(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnEIP
@Stability(Stable) public CfnEIP(@NotNull software.constructs.Construct scope, @NotNull String id, @Nullable CfnEIPProps 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.
-
CfnEIP
- 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
-
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.
-
getAttrAllocationId
The ID that AWS assigns to represent the allocation of the address for use with Amazon VPC.This is returned only for VPC elastic IP addresses. For example,
eipalloc-5723d13e. -
getAttrPublicIp
The Elastic IP address. -
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getEipRef
A reference to a EIP resource. -
getTags
Tag Manager which manages the tags for this resource. -
getAddress
An Elastic IP address or a carrier IP address in a Wavelength Zone. -
setAddress
An Elastic IP address or a carrier IP address in a Wavelength Zone. -
getDomain
The network (vpc). -
setDomain
The network (vpc). -
getInstanceId
The ID of the instance. -
setInstanceId
The ID of the instance. -
getIpamPoolId
The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. -
setIpamPoolId
The ID of an IPAM pool which has an Amazon-provided or BYOIP public IPv4 CIDR provisioned to it. -
getNetworkBorderGroup
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. -
setNetworkBorderGroup
A unique set of Availability Zones, Local Zones, or Wavelength Zones from which AWS advertises IP addresses. -
getPublicIpv4Pool
The ID of an address pool that you own. -
setPublicIpv4Pool
The ID of an address pool that you own. -
getTagsRaw
Any tags assigned to the Elastic IP address. -
setTagsRaw
Any tags assigned to the Elastic IP address. -
getTransferAddress
The Elastic IP address you are accepting for transfer. -
setTransferAddress
The Elastic IP address you are accepting for transfer.
-