Class AWS::EC2::NetworkInterface
In: lib/aws/ec2/network_interface/attachment.rb
lib/aws/ec2/network_interface.rb
Parent: Resource

Represents a network interface in EC2.

@attr [String] description

@attr_reader [String] vpc_id

@attr_reader [String] subnet_id

@attr_reader [String] owner_id

@attr_reader [Symbol] status

@attr_reader [String] private_ip_address

@attr_reader [Array<Hash>] private_ip_addresses Returns an array

  of private ip addresses with the following keys:
  * `:private_ip_address` (String)
  * `:primary` (boolean)

@attr_reader [String] private_dns_name

@attr_reader [String] availability_zone_name

@attr_reader [String] mac_address

@attr_reader [Hash,nil] association Returns a hash of

  details about the association between this network interface
  and an elastic ip address.

@attr [Boolean] source_dest_check

@attr [Boolean] requester_managed

Methods

Included Modules

TaggedItem

Classes and Modules

Class AWS::EC2::NetworkInterface::Attachment

External Aliases

network_interface_id -> id
source_dest_check -> source_dest_check?
requester_managed -> requester_managed?

Attributes

network_interface_id  [R]  @return [String]

Public Class methods

Public Instance methods

@param [Instance,String] instance The instance to attach this network

  interface to, may be an {Instance} object or an instance id string.

@param [Hash] options

@option options [Integer] :device_index (1) The index of the device

 for the network interface attachment on the instance.  Defaults to 1.

@return [nil]

Deletes this network interface. @return [nil]

Detaches this network interface. @param [Hash] options @option (see NetworkInterface::Attachment#detach) @return (see NetworkInterface::Attachment#detach)

@return [Boolean] Returns true if this network interface exists.

@return [Instance,nil] Returns the instance this network interface

  is attached to.  If it has not been attached, then nil is
  returned.
security_groups=(*groups)

@param [Array<SecurityGroup>,Array<String>] groups A list of

  security groups objects or security group ids.  This replaces
  the security group set on this network interface.

@return [nil]

@return [Subnet] Returns the Subnet this network interface

  belongs to.

@return [VPC] Returns the VPC this network interface belongs to.

[Validate]