Class | AWS::AutoScaling::Group |
In: |
lib/aws/auto_scaling/group.rb
|
Parent: | Core::Resource |
@attr_reader [String] arn
@attr_reader [Array<String>] availability_zone_names
@attr_reader [Time] created_time
@attr_reader [Integer] default_cooldown
@attr_reader [Integer] desired_capacity
@attr_reader [Array<Hash>] enabled_metrics Returns a hash of enabled
metric names (keys) and granularities (values).
@attr_reader [Integer] health_check_grace_period
@attr_reader [Symbol] health_check_type Returns :ec2 or :vpc.
@attr_reader [String] launch_configuraiton_name
@attr_reader [Array<String>] load_balancer_names
@attr_reader [Integer] min_size
@attr_reader [Integer] max_size
@attr_reader [String,nil] placement_group
@attr_reader [Hash] suspended_processes A hash of suspended process
names (keys) and reasons (values).
auto_scaling_group_arn | -> | arn |
name | [R] | @return [String] |
Deletes the Auto Scaling group. If you pass +:force+ as true then all the instances associated with this group will also be terminated.
@see delete!
@param [Hash] options
@option options [Boolean] :force (false) When true, the Auto Scaling
group will be deleted along with all instances associated with the group, without waiting for all instances to be terminated.
@return [nil]
Deletes the Auto Scaling group along with all instances associated with the group, without waiting for all instances to be terminated. @return [nil]
Deletes specific tags from this Auto Scaling group.
group.delete_tags([ { :key => 'role', :value => 'webserver' }, ])
You may also pass {Tag} objects.
@param [Array<Tag,Hash>] tags An array of {Tag} objects or
tag hashes to remove. If you pass hashes they should have the following keys: * +:key+ * +:value+ * +:propagate_at_launch+
@return [nil]
Returns a collection that represents the instances belonging to this Auto Scaling group. You can use this collection to further refine the instances you are interested in:
group.ec2_instances.filter('availability-zone', 'us-east-1a').each do |i| puts instance.id end
@return [EC2::InstanceCollection] Returns an instance collection
(without making a request) that represents the instances belonging to this Auto Scaling group.
Resumes processes for this Auto Scaling group.
# resume two processes by name auto_scaling_group.suspend_processes 'Launch', 'AZRebalance'
@param [Array<String>] processes A list of process to resume.
@return [nil]
Adjusts the desired size of the Auto Scaling group by initiating scaling activities. When reducing the size of the group, it is not possible to define which Amazon EC2 instances will be terminated. This applies to any Auto Scaling decisions that might result in terminating instances.
@param [Integer] Capacity The new capacity setting for this Auto
Scaling group.
@param [Hash] options
@option options [Boolean] :honor_cooldown (false)
@return [nil]
Suspends processes for this Auto Scaling group.
# suspend two processes by name auto_scaling_group.suspend_processes 'Launch', 'AZRebalance'
@param [Array<String>] processes A list of process to suspend.
@return [nil]
Update one or more attributes on the Auto Scaling group.
@param (see GroupOptions#group_options)
@option (see GroupOptions#group_options)
@return [nil]