Method: Fog::AWS::EMR::Real#modify_instance_groups
- Defined in:
- lib/fog/aws/requests/emr/modify_instance_groups.rb
#modify_instance_groups(options = {}) ⇒ Object
modifies the number of nodes and configuration settings of an instance group.. docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_ModifyInstanceGroups.html
Parameters
-
InstanceGroups <~InstanceGroupModifyConfig list> - Instance groups to change
-
InstanceCount <~Integer> - Target size for instance group
-
InstanceGroupId <~String> - Unique ID of the instance group to expand or shrink
-
Returns
-
response<~Excon::Response>:
-
body<~Hash>
-
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/fog/aws/requests/emr/modify_instance_groups.rb', line 18 def modify_instance_groups(={}) if job_ids = .delete('InstanceGroups') .merge!(Fog::AWS.serialize_keys('InstanceGroups', job_ids)) end request({ 'Action' => 'ModifyInstanceGroups', :parser => Fog::Parsers::AWS::EMR::ModifyInstanceGroups.new, }.merge()) end |