class AWS::EC2::Attachment

def exists?

Returns:
  • (Boolean) - Returns true if the attachment exists.
def exists?
  !describe_attachment.nil?
end