Sha256: e69544aab66a1e656bcc6457b631fefc199a28a894d80cc122e884c05a22ac96

Contents?: true

Size: 1004 Bytes

Versions: 98

Compression:

Stored size: 1004 Bytes

Contents

module Fog
  module AWS
    class EMR
      class Real
        require '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

98 entries across 96 versions & 6 rubygems

Version Path
fog-aws-3.30.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.29.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.28.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.27.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.26.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.25.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.24.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.23.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.22.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.21.1 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.21.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.20.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.19.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.18.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.17.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.16.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.15.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.14.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.13.0 lib/fog/aws/requests/emr/terminate_job_flows.rb
fog-aws-3.12.0 lib/fog/aws/requests/emr/terminate_job_flows.rb