Sha256: 5dd18e5264e967c9d0e2f2712106424619b275e0b8817220702ca2df407081bb
Contents?: true
Size: 1.27 KB
Versions: 1
Compression:
Stored size: 1.27 KB
Contents
module Fog module AWS class EMR class Real require 'rackspace-fog/aws/parsers/emr/set_termination_protection' # locks a job flow so the Amazon EC2 instances in the cluster cannot be terminated by user intervention. # http://docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_SetTerminationProtection.html # ==== Parameters # * JobFlowIds <~String list> - list of strings that uniquely identify the job flows to protect # * TerminationProtected <~Boolean> - indicates whether to protect the job flow # # ==== Returns # * response<~Excon::Response>: # * body<~Hash> def set_termination_protection(is_protected, options={}) if job_ids = options.delete('JobFlowIds') options.merge!(Fog::AWS.serialize_keys('JobFlowIds', job_ids)) end request({ 'Action' => 'SetTerminationProtection', 'TerminationProtected' => is_protected, :parser => Fog::Parsers::AWS::EMR::SetTerminationProtection.new, }.merge(options)) end end class Mock def set_termination_protection(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/set_termination_protection.rb |