| « PreviousNext » | |
![]() ![]() | Did this page help you? Yes | No | Tell us about it... |
Updates the configuration for the specified AutoScalingGroup.
Note
To update an Auto Scaling group with a launch configuration
that has the InstanceMonitoring flag
set to False, you must first ensure that collection
of group metrics is disabled. Otherwise, calls to
UpdateAutoScalingGroup will fail.
If you have previously enabled group metrics collection,
you can disable collection of all group metrics
by calling DisableMetricsCollection.
The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note
If a new value is specified for MinSize without specifying the value for DesiredCapacity, and if the new MinSize is larger than the current size of the Auto Scaling Group, there will be an implicit call to SetDesiredCapacity to set the group to the new MinSize.
If a new value is specified for MaxSize without specifying the value for DesiredCapacity, and the new MaxSize is smaller than the current size of the Auto Scaling Group, there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize.
All other optional parameters are left unchanged if not passed in the request.
For information about the common parameters that all actions use, see Common Parameters.
The name of the Auto Scaling group.
Type: String
Length constraints: Minimum length of 1. Maximum length of 1600.
Required: Yes
Availability Zones for the group.
Type: String list
Length constraints: Minimum of 1 item(s) in the list.
Required: No
The amount of time, in seconds, after a scaling activity completes before any further scaling activities can start. For more information, see Cooldown Period.
Type: Integer
Required: No
The desired capacity for the Auto Scaling group.
Type: Integer
Required: No
The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when an instance comes into service.
Type: Integer
Required: No
The type of health check for the instances in the Auto Scaling group.
The health check type can either be EC2 for Amazon EC2 or ELB for Elastic Load Balancing.
Type: String
Length constraints: Minimum length of 1. Maximum length of 32.
Required: No
The name of the launch configuration.
Type: String
Length constraints: Minimum length of 1. Maximum length of 1600.
Required: No
The maximum size of the Auto Scaling group.
Type: Integer
Required: No
The minimum size of the Auto Scaling group.
Type: Integer
Required: No
The name of the cluster placement group, if applicable. For more information, go to Using Cluster Instances in the Amazon EC2 User Guide.
Type: String
Length constraints: Minimum length of 1. Maximum length of 255.
Required: No
A standalone termination policy or a list of termination policies used to select the instance to terminate. The policies are executed in the order that they are listed.
For more information on creating a termination policy for your Auto Scaling group, go to Instance Termination Policy for Your Auto Scaling Group in the the Auto Scaling Developer Guide.
Type: String list
Required: No
The subnet identifier for the Amazon VPC connection, if applicable. You can specify several subnets in a comma-separated list.
When you specify VPCZoneIdentifier with AvailabilityZones, ensure that the
subnets' Availability Zones match the values you specify for AvailabilityZones.
For more information on creating your Auto Scaling group in Amazon VPC by specifying subnets, see Launch Auto Scaling Instances into Amazon VPC in the the Auto Scaling Developer Guide.
Type: String
Length constraints: Minimum length of 1. Maximum length of 255.
Required: No
For information about the errors that are common to all actions, see Common Errors.
You cannot delete an Auto Scaling group while there are scaling activities in progress for that group.
HTTP Status Code: 400
https://autoscaling.amazonaws.com/?HealthCheckType=ELB &HealthCheckGracePeriod=300 &AutoScalingGroupName=my-test-asg-lbs &Version=2011-01-01 &Action=UpdateAutoScalingGroup &AUTHPARAMS
<UpdateAutoScalingGroupResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<ResponseMetadata>
<RequestId>adafead0-ab8a-11e2-ba13-ab0ccEXAMPLE</RequestId>
</ResponseMetadata>
</UpdateAutoScalingGroupResponse>https://autoscaling.amazonaws.com/?AutoScalingGroupName=my-test-asg-lbs &AvailabilityZones.member.1=us-east-1a &AvailabilityZones.member.2=us-east-1b &AvailabilityZones.member.3=us-east-1c &MinSize=3 &Version=2011-01-01 &Action=UpdateAutoScalingGroup &AUTHPARAMS
<UpdateAutoScalingGroupResponse xmlns="http://autoscaling.amazonaws.com/doc/2011-01-01/">
<ResponseMetadata>
<RequestId>adafead0-ab8a-11e2-ba13-ab0ccEXAMPLE</RequestId>
</ResponseMetadata>
</UpdateAutoScalingGroupResponse>