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

Class: Aws::EC2::Types::PrivateIpAddressSpecification

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 PrivateIpAddressSpecification data as a hash:

{
  primary: false,
  private_ip_address: "String", # required
}

Describes a secondary private IPv4 address for a network interface.

Instance Attribute Summary collapse

Instance Attribute Details

#primaryBoolean

Indicates whether the private IPv4 address is the primary private IPv4 address. Only one IPv4 address can be designated as primary.

Returns:

  • (Boolean)


21860
21861
21862
21863
21864
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 21860

class PrivateIpAddressSpecification < Struct.new(
  :primary,
  :private_ip_address)
  include Aws::Structure
end

#private_ip_addressString

The private IPv4 addresses.

Returns:

  • (String)


21860
21861
21862
21863
21864
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 21860

class PrivateIpAddressSpecification < Struct.new(
  :primary,
  :private_ip_address)
  include Aws::Structure
end