class AWS::EC2::SnapshotCollection

def each(&block)

Returns:
  • (nil) -

Other tags:
    Yield: - Yields each snapshot in the collection.
def each(&block)
  opts = {}
  opts[:owner_ids] = @owners.map { |id| id.to_s } unless @owners.empty?
  opts[:restorable_by_user_ids] = @restorable_by.map { |id| id.to_s } unless
    @restorable_by.empty?
  resp = filtered_request(:describe_snapshots, opts)
  resp[:snapshot_set].each do |details|
    snapshot = Snapshot.new_from(:describe_snapshots, details,
      details[:snapshot_id], :config => config)
    yield(snapshot)
  end
  nil
end