lib/as/right_as_interface.rb
# Creates a new auto scaling group with the specified name.
# Returns +true+ or raises an exception.
#
# Options: +:min_size+, +:max_size+, +:cooldown+, +:load_balancer_names+
#
#  as.create_auto_scaling_group('CentOS.5.1-c-array', 'CentOS.5.1-c', 'us-east-1c',
#                               :min_size => 2,
#                               :max_size => 5)  #=> true
#
# Amazon's notice: Constraints: Restricted to one Availability Zone
Creates a new auto scaling group with the specified name.
Returns +true+ or raises an exception.





Amazon's notice: Constraints: Restricted to one Availability Zone
Creates a new auto scaling group with the specified name . Returns + true + or raises an exception . Amazon ' s notice : Constraints : Restricted to one Availability Zone
def create_auto_scaling_group(auto_scaling_group_name, launch_configuration_name, availability_zones, options={})
      options[:min_size] ||= 1
      options[:max_size] ||= 20
      options[:cooldown] ||= 0
      request_hash = amazonize_list('AvailabilityZones.member', availability_zones)
      request_hash.merge!( amazonize_list('LoadBalancerNames.member', options[:load_balancer_names]) )
      request_hash.merge!( 'AutoScalingGroupName'    => auto_scaling_group_name,
                           'LaunchConfigurationName' => launch_configuration_name,
                           'MinSize'                 => options[:min_size],
                           'MaxSize'                 => options[:max_size],
                           'Cooldown'                => options[:cooldown] )
      link = generate_request("CreateAutoScalingGroup", request_hash)
      request_info(link, RightHttp2xxParser.new(:logger => @logger))
    end
def create_auto_scaling_group ( auto_scaling_group_name , launch_configuration_name , availability_zones , options = { } ) options [ :min_size ] ||= 1 options [ :max_size ] ||= 20 options [ :cooldown ] ||= 0 request_hash = amazonize_list ( 'AvailabilityZones.member' , availability_zones ) request_hash . merge! ( amazonize_list ( 'LoadBalancerNames.member' , options [ :load_balancer_names ] ) ) request_hash . merge! ( 'AutoScalingGroupName' => auto_scaling_group_name , 'LaunchConfigurationName' => launch_configuration_name , 'MinSize' => options [ :min_size ] , 'MaxSize' => options [ :max_size ] , 'Cooldown' => options [ :cooldown ] ) link = generate_request ( "CreateAutoScalingGroup" , request_hash ) request_info ( link , RightHttp2xxParser . new ( :logger => @logger ) ) end
Creates a new auto scaling group with the specified name.
Creates a new auto scaling group with the specified name .
auto_scaling_group_name
<not_specific>
launch_configuration_name
<not_specific>
availability_zones
<not_specific>
options
<not_specific>