Class: AWS::EMR::InstanceGroup
- Inherits:
-
Core::Resource
- Object
- Core::Resource
- AWS::EMR::InstanceGroup
- Defined in:
- lib/aws/emr/instance_group.rb
Instance Attribute Summary collapse
-
#bid_price ⇒ String?
readonly
The current value of bid_price.
-
#created_at ⇒ Time
readonly
The current value of created_at.
-
#ended_at ⇒ Time
readonly
The current value of ended_at.
- #instance_group_id ⇒ String (also: #id) readonly
-
#instance_request_count ⇒ String
readonly
The current value of instance_request_count.
-
#instance_role ⇒ String
readonly
The current value of instance_role.
-
#instance_running_count ⇒ String
readonly
The current value of instance_running_count.
-
#instance_type ⇒ String
readonly
The current value of instance_type.
- #job_flow ⇒ JobFlow readonly
-
#last_state_change_reason ⇒ String
readonly
The current value of last_state_change_reason.
-
#market ⇒ String
readonly
The current value of market.
-
#ready_at ⇒ Time
readonly
The current value of ready_at.
-
#started_at ⇒ Time
readonly
The current value of started_at.
-
#state ⇒ String
readonly
The current value of state.
Instance Method Summary collapse
-
#exists? ⇒ Boolean
Returns
true
if the instance group exists. - #modify(options = {}) ⇒ nil
-
#set_instance_count(count) ⇒ nil
Modifies the target size of this instance group.
Instance Attribute Details
#bid_price ⇒ String? (readonly)
Returns the current value of bid_price.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def bid_price @bid_price end |
#created_at ⇒ Time (readonly)
Returns the current value of created_at.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def created_at @created_at end |
#ended_at ⇒ Time (readonly)
Returns the current value of ended_at.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def ended_at @ended_at end |
#instance_group_id ⇒ String (readonly) Also known as: id
54 55 56 |
# File 'lib/aws/emr/instance_group.rb', line 54 def instance_group_id @instance_group_id end |
#instance_request_count ⇒ String (readonly)
Returns the current value of instance_request_count.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def instance_request_count @instance_request_count end |
#instance_role ⇒ String (readonly)
Returns the current value of instance_role.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def instance_role @instance_role end |
#instance_running_count ⇒ String (readonly)
Returns the current value of instance_running_count.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def instance_running_count @instance_running_count end |
#instance_type ⇒ String (readonly)
Returns the current value of instance_type.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def instance_type @instance_type end |
#job_flow ⇒ JobFlow (readonly)
51 52 53 |
# File 'lib/aws/emr/instance_group.rb', line 51 def job_flow @job_flow end |
#last_state_change_reason ⇒ String (readonly)
Returns the current value of last_state_change_reason.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def last_state_change_reason @last_state_change_reason end |
#market ⇒ String (readonly)
Returns the current value of market.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def market @market end |
#ready_at ⇒ Time (readonly)
Returns the current value of ready_at.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def ready_at @ready_at end |
#started_at ⇒ Time (readonly)
Returns the current value of started_at.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def started_at @started_at end |
#state ⇒ String (readonly)
Returns the current value of state.
41 42 43 |
# File 'lib/aws/emr/instance_group.rb', line 41 def state @state end |
Instance Method Details
#exists? ⇒ Boolean
Returns true
if the instance group exists.
108 109 110 |
# File 'lib/aws/emr/instance_group.rb', line 108 def exists? !!find_in_response(get_resource) end |
#modify(options = {}) ⇒ nil
100 101 102 103 104 105 |
# File 'lib/aws/emr/instance_group.rb', line 100 def modify = {} [:instance_group_id] = instance_group_id [:instance_count] = .delete(:count) if [:count] client.modify_instance_groups(:instance_groups => []) nil end |
#set_instance_count(count) ⇒ nil
Modifies the target size of this instance group.
92 93 94 |
# File 'lib/aws/emr/instance_group.rb', line 92 def set_instance_count count modify(:instance_count => count) end |