Class: AWS::AutoScaling::ActivityCollection
- Inherits:
-
Object
- Object
- AWS::AutoScaling::ActivityCollection
- Includes:
- Core::Collection::WithLimitAndNextToken
- Defined in:
- lib/aws/auto_scaling/activity_collection.rb
Overview
Allows you to enumerate Auto Scaling activities
Enumerating ALL activities:
auto_scaling = AWS::AutoScaling.new
auto_scaling.activities.each do |activity|
# ...
end
Enumerating activities for a single Auto Scaling group:
group = auto_scaling.groups['group-name']
group.activities.each do |activity|
# ...
end
If you know the id of an activity you can get a refernce to it:
activity = auto_scaling.activities['activity-id']