@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.166Z") @Stability(value=Stable) public interface CfnEIPAssociationProps extends software.amazon.jsii.JsiiSerializable
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.*;
CfnEIPAssociationProps cfnEIPAssociationProps = CfnEIPAssociationProps.builder()
.allocationId("allocationId")
.eip("eip")
.instanceId("instanceId")
.networkInterfaceId("networkInterfaceId")
.privateIpAddress("privateIpAddress")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnEIPAssociationProps.Builder
A builder for
CfnEIPAssociationProps |
static class |
CfnEIPAssociationProps.Jsii$Proxy
An implementation for
CfnEIPAssociationProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnEIPAssociationProps.Builder |
builder() |
default String |
getAllocationId()
[EC2-VPC] The allocation ID.
|
default String |
getEip()
[EC2-Classic] The Elastic IP address to associate with the instance.
|
default String |
getInstanceId()
The ID of the instance.
|
default String |
getNetworkInterfaceId()
[EC2-VPC] The ID of the network interface.
|
default String |
getPrivateIpAddress()
[EC2-VPC] The primary or secondary private IP address to associate with the Elastic IP address.
|
@Stability(value=Stable) @Nullable default String getAllocationId()
This is required for EC2-VPC.
@Stability(value=Stable) @Nullable default String getEip()
This is required for EC2-Classic.
@Stability(value=Stable) @Nullable default String getInstanceId()
The instance must have exactly one attached network interface. For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both. For EC2-Classic, you must specify an instance ID and the instance must be in the running state.
@Stability(value=Stable) @Nullable default String getNetworkInterfaceId()
If the instance has more than one network interface, you must specify a network interface ID.
For EC2-VPC, you can specify either the instance ID or the network interface ID, but not both.
@Stability(value=Stable) @Nullable default String getPrivateIpAddress()
If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.
@Stability(value=Stable) static CfnEIPAssociationProps.Builder builder()
CfnEIPAssociationProps.Builder of CfnEIPAssociationPropsCopyright © 2022. All rights reserved.