Class: Stax::Aws::Emr

Inherits:
Sdk
  • Object
show all
Defined in:
lib/stax/aws/emr.rb

Constant Summary

Constants inherited from Sdk

Sdk::RETRY_LIMIT

Class Method Summary collapse

Methods inherited from Sdk

paginate

Class Method Details

.clientObject



9
10
11
# File 'lib/stax/aws/emr.rb', line 9

def client
  @_client ||= ::Aws::EMR::Client.new
end

.describe(id) ⇒ Object



13
14
15
# File 'lib/stax/aws/emr.rb', line 13

def describe(id)
  client.describe_cluster(cluster_id: id).cluster
end

.groups(id) ⇒ Object



17
18
19
20
# File 'lib/stax/aws/emr.rb', line 17

def groups(id)
  ## TODO paginate me
  client.list_instance_groups(cluster_id: id).instance_groups
end

.instances(id, types = nil) ⇒ Object



22
23
24
25
# File 'lib/stax/aws/emr.rb', line 22

def instances(id, types = nil)
  ## TODO paginate me
  client.list_instances(cluster_id: id, instance_group_types: types).instances
end