Class: AWS::AutoScaling::Activity
- Inherits:
-
Core::Resource
- Object
- Core::Resource
- AWS::AutoScaling::Activity
- Defined in:
- lib/aws/auto_scaling/activity.rb
Instance Attribute Summary collapse
- #activity_id ⇒ String (also: #id) readonly
-
#auto_scaling_group_name ⇒ String
readonly
The current value of auto_scaling_group_name.
-
#cause ⇒ String
readonly
The current value of cause.
-
#description ⇒ nil, String
readonly
The current value of description.
-
#details ⇒ String
readonly
The current value of details.
-
#end_time ⇒ nil, Time
readonly
The current value of end_time.
-
#progress ⇒ Integer
readonly
The current value of progress.
-
#start_time ⇒ Time
readonly
The current value of start_time.
-
#status_code ⇒ nil, String
readonly
The current value of status_code.
-
#status_message ⇒ nil, String
readonly
The current value of status_message.
Attributes included from Core::Model
Instance Method Summary collapse
- #exists? ⇒ Boolean
- #group ⇒ Group
-
#initialize(activity_id, options = {}) ⇒ Activity
constructor
A new instance of Activity.
Methods inherited from Core::Resource
attribute_providers, attribute_providers_for, attributes, #attributes_from_response, define_attribute_type, #eql?, #inspect, new_from
Methods included from Core::Cacheable
Methods included from Core::Model
#client, #config_prefix, #inspect
Constructor Details
#initialize(activity_id, options = {}) ⇒ Activity
Returns a new instance of Activity.
39 40 41 42 |
# File 'lib/aws/auto_scaling/activity.rb', line 39 def initialize activity_id, = {} @activity_id = activity_id super end |
Instance Attribute Details
#activity_id ⇒ String (readonly) Also known as: id
45 46 47 |
# File 'lib/aws/auto_scaling/activity.rb', line 45 def activity_id @activity_id end |
#auto_scaling_group_name ⇒ String (readonly)
Returns the current value of auto_scaling_group_name.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def auto_scaling_group_name @auto_scaling_group_name end |
#cause ⇒ String (readonly)
Returns the current value of cause.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def cause @cause end |
#description ⇒ nil, String (readonly)
Returns the current value of description.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def description @description end |
#details ⇒ String (readonly)
Returns the current value of details.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def details @details end |
#end_time ⇒ nil, Time (readonly)
Returns the current value of end_time.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def end_time @end_time end |
#progress ⇒ Integer (readonly)
Returns the current value of progress.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def progress @progress end |
#start_time ⇒ Time (readonly)
Returns the current value of start_time.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def start_time @start_time end |
#status_code ⇒ nil, String (readonly)
Returns the current value of status_code.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def status_code @status_code end |
#status_message ⇒ nil, String (readonly)
Returns the current value of status_message.
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def @status_message end |
Instance Method Details
#exists? ⇒ Boolean
81 82 83 84 85 86 |
# File 'lib/aws/auto_scaling/activity.rb', line 81 def exists? client_opts = {} client_opts[:activity_ids] = [activity_id] resp = client.describe_scaling_activities(client_opts) !resp.activities.empty? end |