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

Represents a network interface in EC2.

Methods

Included Modules

TaggedItem

Classes and Modules

Class AWS::EC2::NetworkInterface::Attachment

External Aliases

network_interface_id -> id
source_dest_check? -> source_dest_check

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]