lib/emr/right_emr_interface.rb
# Modifies instance groups.
#
# The only modifiable parameter is instance count.
#
# An instance group may only be modified when the job flow is running
# or waiting. Additionally, hadoop 0.20 is required to resize job flows.
#
#  # general syntax
#  emr.modify_instance_groups(
#    {:instance_group_id => 'ig-P2OPM2L9ZQ4P', :instance_count => 5},
#    {:instance_group_id => 'ig-J82ML0M94A7E', :instance_count => 1}
#  ) #=> true
#
#  # shortcut syntax
#  emr.modify_instance_groups('ig-P2OPM2L9ZQ4P', 5) #=> true
#
# Shortcut syntax supports modifying only one instance group at a time.
#
Modifies instance groups.
The only modifiable parameter is instance count.

An instance group may only be modified when the job flow is running
or waiting. Additionally, hadoop 0.20 is required to resize job flows.



shortcut syntax
emr.modify_instance_groups('ig-P2OPM2L9ZQ4P', 5) #=> true

Shortcut syntax supports modifying only one instance group at a time.
Modifies instance groups . The only modifiable parameter is instance count . An instance group may only be modified when the job flow is running or waiting . Additionally hadoop 0 . 20 is required to resize job flows . shortcut syntax emr . modify_instance_groups ( ' ig - P2OPM2L9ZQ4P ' 5 ) # = > true Shortcut syntax supports modifying only one instance group at a time .
def modify_instance_groups(*args)
      unless args.first.is_a?(Hash)
        if args.length != 2
          raise ArgumentError, "Must be given two arguments if arguments are not hashes"
        end
        args = [{:instance_group_id => args.first, :instance_count => args.last}]
      end
      request_hash = amazonize_list_with_key_mapping('InstanceGroups.member', MODIFY_INSTANCE_GROUP_KEY_MAPPINGS, args)
      link = generate_request("ModifyInstanceGroups", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    rescue
      on_exception
    end
def modify_instance_groups ( * args ) unless args . first . is_a? ( Hash ) if args . length != 2 raise ArgumentError , "Must be given two arguments if arguments are not hashes" end args = [ { :instance_group_id => args . first , :instance_count => args . last } ] end request_hash = amazonize_list_with_key_mapping ( 'InstanceGroups.member' , MODIFY_INSTANCE_GROUP_KEY_MAPPINGS , args ) link = generate_request ( "ModifyInstanceGroups" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) rescue on_exception end
Modifies instance groups.
Modifies instance groups .
args
<not_specific>