Sha256: a5710f91ff84df4aa9bcd171bc6dc4e97030473d6b82f5d4451713774eb820a0

Contents?: true

Size: 1 KB

Versions: 1

Compression:

Stored size: 1 KB

Contents

module Fog
  module AWS
    class EMR
      class Real

        require 'rackspace-fog/aws/parsers/emr/terminate_job_flows'

        # shuts a list of job flows down.
        # http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_TerminateJobFlows.html
        # ==== Parameters
        # * JobFlowIds <~String list> - list of strings that uniquely identify the job flows to protect
        # 
        # ==== Returns
        # * response<~Excon::Response>:
        #   * body<~Hash>
        def terminate_job_flows(options={})
          
          if job_ids = options.delete('JobFlowIds')
            options.merge!(Fog::AWS.serialize_keys('JobFlowIds', job_ids))
          end
          request({
            'Action'  => 'TerminateJobFlows',
            :parser   => Fog::Parsers::AWS::EMR::TerminateJobFlows.new,
          }.merge(options))
        end
      end

      class Mock

        def terminate_job_flows(db_name, options={})
          Fog::Mock.not_implemented
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rackspace-fog-1.4.2 lib/rackspace-fog/aws/requests/emr/terminate_job_flows.rb