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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

Note:

When making an API call, you may pass AssignPrivateIpAddressesRequest data as a hash:

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

Contains the parameters for AssignPrivateIpAddresses.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#allow_reassignmentBoolean

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)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_4_prefix_countInteger

The number of IPv4 prefixes that Amazon Web Services automatically assigns to the network interface. You cannot use this option if you use the Ipv4 Prefixes option.

Returns:

  • (Integer)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#ipv_4_prefixesArray<String>

One or more IPv4 prefixes assigned to the network interface. You cannot use this option if you use the Ipv4PrefixCount option.

Returns:

  • (Array<String>)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#network_interface_idString

The ID of the network interface.

Returns:

  • (String)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#private_ip_addressesArray<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>)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end

#secondary_private_ip_address_countInteger

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)


1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 1669

class AssignPrivateIpAddressesRequest < Struct.new(
  :allow_reassignment,
  :network_interface_id,
  :private_ip_addresses,
  :secondary_private_ip_address_count,
  :ipv_4_prefixes,
  :ipv_4_prefix_count)
  SENSITIVE = []
  include Aws::Structure
end