EipAssociationArgs

data class EipAssociationArgs(val allocationId: Output<String>? = null, val eip: Output<String>? = null, val instanceId: Output<String>? = null, val networkInterfaceId: Output<String>? = null, val privateIpAddress: Output<String>? = null) : ConvertibleToJava<EipAssociationArgs>

Associates an Elastic IP address with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account. For more information about working with Elastic IP addresses, see Elastic IP address concepts and rules. You must specify `AllocationId` and either `InstanceId`, `NetworkInterfaceId`, or `PrivateIpAddress`.

Constructors

Link copied to clipboard
constructor(allocationId: Output<String>? = null, eip: Output<String>? = null, instanceId: Output<String>? = null, networkInterfaceId: Output<String>? = null, privateIpAddress: Output<String>? = null)

Properties

Link copied to clipboard
val allocationId: Output<String>? = null

The allocation ID. This is required.

Link copied to clipboard
val eip: Output<String>? = null
Link copied to clipboard
val instanceId: Output<String>? = null

The ID of the instance. The instance must have exactly one attached network interface. You can specify either the instance ID or the network interface ID, but not both.

Link copied to clipboard
val networkInterfaceId: Output<String>? = null

The ID of the network interface. If the instance has more than one network interface, you must specify a network interface ID. You can specify either the instance ID or the network interface ID, but not both.

Link copied to clipboard
val privateIpAddress: Output<String>? = null

The primary or secondary private IP address to associate with the Elastic IP address. If no private IP address is specified, the Elastic IP address is associated with the primary private IP address.

Functions

Link copied to clipboard
open override fun toJava(): EipAssociationArgs