Method: Fog::AWS::EMR::Real#add_instance_groups
- Defined in:
- lib/fog/aws/requests/emr/add_instance_groups.rb
#add_instance_groups(job_flow_id, options = {}) ⇒ Object
adds an instance group to a running cluster docs.amazonwebservices.com/ElasticMapReduce/latest/API/API_AddInstanceGroups.html
Parameters
-
JobFlowId <~String> - Job flow in which to add the instance groups
-
InstanceGroups<~Array> - Instance Groups to add
-
‘BidPrice’<~String> - Bid price for each Amazon EC2 instance in the instance group when launching nodes as Spot Instances, expressed in USD.
-
‘InstanceCount’<~Integer> - Target number of instances for the instance group
-
‘InstanceRole’<~String> - MASTER | CORE | TASK The role of the instance group in the cluster
-
‘InstanceType’<~String> - The Amazon EC2 instance type for all instances in the instance group
-
‘MarketType’<~String> - ON_DEMAND | SPOT Market type of the Amazon EC2 instances used to create a cluster node
-
‘Name’<~String> - Friendly name given to the instance group.
-
Returns
-
response<~Excon::Response>:
-
body<~Hash>:
-
23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/fog/aws/requests/emr/add_instance_groups.rb', line 23 def add_instance_groups(job_flow_id, ={}) if instance_groups = .delete('InstanceGroups') .merge!(Fog::AWS.indexed_param('InstanceGroups.member.%d', [*instance_groups])) end request({ 'Action' => 'AddInstanceGroups', 'JobFlowId' => job_flow_id, :parser => Fog::Parsers::AWS::EMR::AddInstanceGroups.new, }.merge()) end |