@Generated(value="jsii-pacmak/1.46.0 (build cd08c55)", date="2021-11-25T20:11:05.897Z") @Stability(value=Stable) public class CfnEIP extends CfnResource implements IInspectable
Example:
Instance instance;
HostedZone myZone;
CfnEIP elasticIp = CfnEIP.Builder.create(this, "EIP")
.domain("vpc")
.instanceId(instance.getInstanceId())
.build();
ARecord.Builder.create(this, "ARecord")
.zone(myZone)
.target(RecordTarget.fromIpAddresses(elasticIp.getRef()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnEIP.Builder
A fluent builder for
CfnEIP. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnEIP(software.constructs.Construct scope,
String id)
Create a new `AWS::EC2::EIP`.
|
|
CfnEIP(software.constructs.Construct scope,
String id,
CfnEIPProps props)
Create a new `AWS::EC2::EIP`.
|
protected |
CfnEIP(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnEIP(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrAllocationId() |
protected Map<String,Object> |
getCfnProperties() |
String |
getDomain()
`AWS::EC2::EIP.Domain`.
|
String |
getInstanceId()
`AWS::EC2::EIP.InstanceId`.
|
String |
getPublicIpv4Pool()
`AWS::EC2::EIP.PublicIpv4Pool`.
|
TagManager |
getTags()
`AWS::EC2::EIP.Tags`.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setDomain(String value)
`AWS::EC2::EIP.Domain`.
|
void |
setInstanceId(String value)
`AWS::EC2::EIP.InstanceId`.
|
void |
setPublicIpv4Pool(String value)
`AWS::EC2::EIP.PublicIpv4Pool`.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnEIP(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnEIP(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnEIP(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnEIPProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnEIP(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrAllocationId()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @Nullable public String getDomain()
@Stability(value=Stable)
public void setDomain(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getInstanceId()
@Stability(value=Stable)
public void setInstanceId(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getPublicIpv4Pool()
@Stability(value=Stable)
public void setPublicIpv4Pool(@Nullable
String value)
@Stability(value=Stable) @NotNull public TagManager getTags()
Copyright © 2021. All rights reserved.