@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.166Z") @Stability(value=Stable) public interface CfnEIPProps extends software.amazon.jsii.JsiiSerializable
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 | Interface and Description |
|---|---|
static class |
CfnEIPProps.Builder
A builder for
CfnEIPProps |
static class |
CfnEIPProps.Jsii$Proxy
An implementation for
CfnEIPProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnEIPProps.Builder |
builder() |
default String |
getDomain()
Indicates whether the Elastic IP address is for use with instances in a VPC or instance in EC2-Classic.
|
default String |
getInstanceId()
The ID of the instance.
|
default String |
getNetworkBorderGroup()
`AWS::EC2::EIP.NetworkBorderGroup`.
|
default String |
getPublicIpv4Pool()
The ID of an address pool that you own.
|
default List<CfnTag> |
getTags()
Any tags assigned to the Elastic IP address.
|
@Stability(value=Stable) @Nullable default String getDomain()
Default: If the Region supports EC2-Classic, the default is standard . Otherwise, the default is vpc .
Use when allocating an address for use with a VPC if the Region supports EC2-Classic.
If you define an Elastic IP address and associate it with a VPC that is defined in the same template, you must declare a dependency on the VPC-gateway attachment by using the DependsOn Attribute on this resource.
@Stability(value=Stable) @Nullable default String getInstanceId()
Updates to the
InstanceIdproperty may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
@Stability(value=Stable) @Nullable default String getNetworkBorderGroup()
@Stability(value=Stable) @Nullable default String getPublicIpv4Pool()
Use this parameter to let Amazon EC2 select an address from the address pool.
Updates to the
PublicIpv4Poolproperty may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
Updates to the
Tagsproperty may require some interruptions . Updates on an EIP reassociates the address on its associated resource.
@Stability(value=Stable) static CfnEIPProps.Builder builder()
CfnEIPProps.Builder of CfnEIPPropsCopyright © 2022. All rights reserved.