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