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. Triggers that are currently in progress aren't affected.
NOTE: If the new values are specified for the MinSize or MaxSize parameters, then there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. All optional parameters are left unchanged if not passed in the request.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class UpdateAutoScalingGroupRequest : AmazonWebServiceRequest
Public Class UpdateAutoScalingGroupRequest _ Inherits AmazonWebServiceRequest
public ref class UpdateAutoScalingGroupRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| 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 trigger-related scaling activities can start.
| |
| 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 an instance comes into
service.
| |
| HealthCheckType |
The service of interest for the health status check, either "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: | |
| ToString()()()() | (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.
Constraints: | |
| WithAutoScalingGroupName(String) |
Sets the AutoScalingGroupName property
| |
| WithAvailabilityZones(IEnumerable<(Of <<'(String>)>>)) |
Adds elements to the AvailabilityZones collection
| |
| WithAvailabilityZones(array<String>[]()[][]) |
Adds elements to the AvailabilityZones collection
| |
| WithDefaultCooldown(Int32) |
Sets the DefaultCooldown property
| |
| WithDesiredCapacity(Int32) |
Sets the DesiredCapacity property
| |
| WithHealthCheckGracePeriod(Int32) |
Sets the HealthCheckGracePeriod property
| |
| WithHealthCheckType(String) |
Sets the HealthCheckType property
| |
| WithLaunchConfigurationName(String) |
Sets the LaunchConfigurationName property
| |
| WithMaxSize(Int32) |
Sets the MaxSize property
| |
| WithMinSize(Int32) |
Sets the MinSize property
| |
| WithPlacementGroup(String) |
Sets the PlacementGroup property
| |
| WithVPCZoneIdentifier(String) |
Sets the VPCZoneIdentifier property
|
Inheritance Hierarchy
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.AutoScaling.Model..::..UpdateAutoScalingGroupRequest