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

Methods

External Aliases

attachment_id -> id
delete_on_termination -> delete_on_termination?

Attributes

attach_time  [R]  @return [Time]
attachment_id  [R]  @return [String] Returns the attachment id.
delete_on_termination  [R]  @return [Boolean]
device_index  [R]  @return [Integer] The index of the device for the network
  interface attachment on the instance.
instance  [R]  @return [Instance] Returns the instance the network interface
  is attached to.
instance_owner_id  [R]  @return [String] Returns the instance owner id.
network_interface  [R]  @return [NetworkInterface] Returns the network interface this
  is an attachment for.
status  [R]  @return [Symbol] Returns the attachment status.

Public Class methods

Public Instance methods

delete(options = {})

Alias for detach

Allows you to toggle the delete on termination state.

    network_interface.attachment.delete_on_termination = false

@param [Boolean] state

Detaches the network interface from the instance.

@param [Hash] options

@option options [Boolean] :force (false) Set true to force

  a detachment.

@return [nil]

[Validate]