Smaws_Client_AutoScaling.SetDesiredCapacitySets the size of the specified Auto Scaling group.
If a scale-in activity occurs as a result of a new DesiredCapacity value that is lower than the current size of the group, the Auto Scaling group uses its termination policy to determine which instances to terminate.
For more information, see Manual scaling in the Amazon EC2 Auto Scaling User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ScalingActivityInProgressFault of Types.scaling_activity_in_progress_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.set_desired_capacity_type ->
(Smaws_Lib.Smithy_api.Types.unit_,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ScalingActivityInProgressFault of
Types.scaling_activity_in_progress_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.set_desired_capacity_type ->
(Smaws_Lib.Smithy_api.Types.unit_ Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `ResourceContentionFault of Types.resource_contention_fault
| `ScalingActivityInProgressFault of
Types.scaling_activity_in_progress_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result