You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::EC2::Types::AssignPrivateIpAddressesRequest

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing AssignPrivateIpAddressesRequest as input to an Aws::Client method, you can use a vanilla Hash:

{
  allow_reassignment: false,
  network_interface_id: "NetworkInterfaceId", # required
  private_ip_addresses: ["String"],
  secondary_private_ip_address_count: 1,
}

Contains the parameters for AssignPrivateIpAddresses.

Instance Attribute Summary collapse

Instance Attribute Details

#allow_reassignment ⇒ Boolean

Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

Returns:

  • (Boolean) —

    Indicates whether to allow an IP address that is already assigned to another network interface or instance to be reassigned to the specified network interface.

#network_interface_id ⇒ String

The ID of the network interface.

Returns:

  • (String) —

    The ID of the network interface.

#private_ip_addresses ⇒ Array<String>

One or more IP addresses to be assigned as a secondary private IP address to the network interface. You can\'t specify this parameter when also specifying a number of secondary IP addresses.

If you don\'t specify an IP address, Amazon EC2 automatically selects an IP address within the subnet range.

Returns:

  • (Array<String>) —

    One or more IP addresses to be assigned as a secondary private IP address to the network interface.

#secondary_private_ip_address_count ⇒ Integer

The number of secondary IP addresses to assign to the network interface. You can\'t specify this parameter when also specifying private IP addresses.

Returns:

  • (Integer) —

    The number of secondary IP addresses to assign to the network interface.