Method: AWS::EMR::JobFlowCollection#with_id

Defined in:
lib/aws/emr/job_flow_collection.rb

#with_id(*ids) ⇒ JobFlowCollection

Returns a new collection that will only enumerate job flows that have one of the given ids.

emr.job_flows.with_id('id1', 'id2', 'id3').each do |job_flow|
  # ...
end

Parameters:

  • ids (String)

    One or more job flow ids to use as a filter.

Returns:



112
113
114
# File 'lib/aws/emr/job_flow_collection.rb', line 112

def with_id *ids
  filter(:job_flow_ids, ids.flatten)
end