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.
C# |
public class UpdateAutoScalingGroupRequest : AmazonWebServiceRequest
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
UpdateAutoScalingGroupRequest()()()() | Initializes a new instance of the UpdateAutoScalingGroupRequest class | |
AutoScalingGroupName |
The name of the Auto Scaling group.
Constraints: | |
AvailabilityZones |
Availability Zones for the group.
Constraints: | |
DefaultCooldown |
The amount of time, in seconds, after a scaling activity completes before any further scaling activities can start. For more information,
see Cooldown Period.
| |
DesiredCapacity |
The desired capacity for the Auto Scaling group.
| |
Equals(Object) | (Inherited from Object.) | |
GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | |
HealthCheckGracePeriod |
The length of time that Auto Scaling waits before checking an instance's health status. The grace period begins when the instance passes
System Status and the Instance Status checks from Amazon EC2. For more information, see DescribeInstanceStatus.
| |
HealthCheckType |
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.
Constraints: | |
LaunchConfigurationName |
The name of the launch configuration.
Constraints: | |
MaxSize |
The maximum size of the Auto Scaling group.
| |
MinSize |
The minimum size of the Auto Scaling group.
| |
PlacementGroup |
The name of the cluster placement group, if applicable. For more information, go to Using Cluster Instances in the Amazon EC2 User
Guide.
Constraints: | |
TerminationPolicies |
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.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
VPCZoneIdentifier |
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.
Constraints: | |
WithAutoScalingGroupName(String) | Obsolete.
Sets the AutoScalingGroupName property
| |
WithAvailabilityZones(array<String>[]()[][]) | Obsolete.
Adds elements to the AvailabilityZones collection
| |
WithAvailabilityZones(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the AvailabilityZones collection
| |
WithDefaultCooldown(Int32) | Obsolete.
Sets the DefaultCooldown property
| |
WithDesiredCapacity(Int32) | Obsolete.
Sets the DesiredCapacity property
| |
WithHealthCheckGracePeriod(Int32) | Obsolete.
Sets the HealthCheckGracePeriod property
| |
WithHealthCheckType(String) | Obsolete.
Sets the HealthCheckType property
| |
WithLaunchConfigurationName(String) | Obsolete.
Sets the LaunchConfigurationName property
| |
WithMaxSize(Int32) | Obsolete.
Sets the MaxSize property
| |
WithMinSize(Int32) | Obsolete.
Sets the MinSize property
| |
WithPlacementGroup(String) | Obsolete.
Sets the PlacementGroup property
| |
WithTerminationPolicies(array<String>[]()[][]) | Obsolete.
Adds elements to the TerminationPolicies collection
| |
WithTerminationPolicies(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the TerminationPolicies collection
| |
WithVPCZoneIdentifier(String) | Obsolete.
Sets the VPCZoneIdentifier property
|
Object | ||
AmazonWebServiceRequest | ||
UpdateAutoScalingGroupRequest |