class AWS::EC2::Snapshot

def exists?

Returns:
  • (Boolean) - True if the snapshot exists.
def exists?
  resp =
    client.describe_snapshots(:filters => [{ :name => 'snapshot-id',
                                             :values => [id] }]) and
    !resp.snapshot_set.empty?
end