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)
- - (String) activity_id (also: #id) readonly
-
- (String) auto_scaling_group_name
readonly
The current value of auto_scaling_group_name.
-
- (String) cause
readonly
The current value of cause.
-
- (nil, String) description
readonly
The current value of description.
-
- (String) details
readonly
The current value of details.
-
- (nil, Time) end_time
readonly
The current value of end_time.
-
- (Integer) progress
readonly
The current value of progress.
-
- (Time) start_time
readonly
The current value of start_time.
-
- (nil, String) status_code
readonly
The current value of status_code.
-
- (nil, String) status_message
readonly
The current value of status_message.
Instance Method Summary (collapse)
Instance Attribute Details
- (String) activity_id (readonly) Also known as: id
45 46 47 |
# File 'lib/aws/auto_scaling/activity.rb', line 45 def activity_id @activity_id end |
- (String) auto_scaling_group_name (readonly)
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 |
- (String) cause (readonly)
The current value of cause
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def cause @cause end |
- (nil, String) description (readonly)
The current value of description
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def description @description end |
- (String) details (readonly)
The current value of details
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def details @details end |
- (nil, Time) end_time (readonly)
The current value of end_time
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def end_time @end_time end |
- (Integer) progress (readonly)
The current value of progress
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def progress @progress end |
- (Time) start_time (readonly)
The current value of start_time
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def start_time @start_time end |
- (nil, String) status_code (readonly)
The current value of status_code
36 37 38 |
# File 'lib/aws/auto_scaling/activity.rb', line 36 def status_code @status_code end |
- (nil, String) status_message (readonly)
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
- (Boolean) exists?
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 |
- (Group) group
76 77 78 |
# File 'lib/aws/auto_scaling/activity.rb', line 76 def group Group.new(auto_scaling_group_name, :config => config) end |