lib/as/right_as_interface.rb
# Updates the configuration for the given AutoScalingGroup. If MaxSize is lower than the current size,
# then there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. The
# same is true for MinSize there will also be an implicit call to SetDesiredCapacity. All optional
# parameters are left unchanged if not passed in the request.
#
# The new settings are registered upon the completion of this call. Any launch configuration settings
# will take effect on any triggers after this call returns. However, triggers that are currently in
# progress can not be affected. See key term Trigger.
# 
# Returns +true+ or raises an exception.
#
# Options: +:launch_configuration_name+, +:min_size+, +:max_size+, +:cooldown+, +:availability_zones+.
# (Amazon's notice: +:availability_zones+ is reserved for future use.)
#
#  as.update_auto_scaling_group('CentOS.5.1-c', :min_size => 1, :max_size => 4) #=> true
#
Updates the configuration for the given AutoScalingGroup. If MaxSize is lower than the current size,
then there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. The
same is true for MinSize there will also be an implicit call to SetDesiredCapacity. All optional
parameters are left unchanged if not passed in the request.

The new settings are registered upon the completion of this call. Any launch configuration settings
will take effect on any triggers after this call returns. However, triggers that are currently in
progress can not be affected. See key term Trigger.

Returns +true+ or raises an exception.




Updates the configuration for the given AutoScalingGroup . If MaxSize is lower than the current size then there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize . The same is true for MinSize there will also be an implicit call to SetDesiredCapacity . All optional parameters are left unchanged if not passed in the request . The new settings are registered upon the completion of this call . Any launch configuration settings will take effect on any triggers after this call returns . However triggers that are currently in progress can not be affected . See key term Trigger . Returns + true + or raises an exception .
def update_auto_scaling_group(auto_scaling_group_name, options={})
      request_hash = amazonize_list('AvailabilityZones.member', options[:availability_zones])
      request_hash['AutoScalingGroupName']    = auto_scaling_group_name
      request_hash['LaunchConfigurationName'] = options[:launch_configuration_name] if options[:launch_configuration_name]
      request_hash['MinSize']  = options[:min_size] if options[:min_size]
      request_hash['MaxSize']  = options[:max_size] if options[:max_size]
      request_hash['Cooldown'] = options[:cooldown] if options[:cooldown]
      link = generate_request("UpdateAutoScalingGroup", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    end
def update_auto_scaling_group ( auto_scaling_group_name , options = { } ) request_hash = amazonize_list ( 'AvailabilityZones.member' , options [ :availability_zones ] ) request_hash [ 'AutoScalingGroupName' ] = auto_scaling_group_name request_hash [ 'LaunchConfigurationName' ] = options [ :launch_configuration_name ] if options [ :launch_configuration_name ] request_hash [ 'MinSize' ] = options [ :min_size ] if options [ :min_size ] request_hash [ 'MaxSize' ] = options [ :max_size ] if options [ :max_size ] request_hash [ 'Cooldown' ] = options [ :cooldown ] if options [ :cooldown ] link = generate_request ( "UpdateAutoScalingGroup" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) end
Updates the configuration for the given AutoScalingGroup.
Updates the configuration for the given AutoScalingGroup .
auto_scaling_group_name
<not_specific>
options
<not_specific>