Method: AWS::EC2::Attachment#instance

Defined in:
lib/aws/ec2/attachment.rb

#instanceInstance (readonly)

Returns the EC2 instance the volume is attached to.

Returns:

  • (Instance)

    Returns the EC2 instance the volume is attached to.



45
46
47
# File 'lib/aws/ec2/attachment.rb', line 45

def instance
  @instance
end