Smaws_Client_AutoScaling.PutWarmPoolCreates or updates a warm pool for the specified Auto Scaling group. A warm pool is a pool of pre-initialized EC2 instances that sits alongside the Auto Scaling group. Whenever your application needs to scale out, the Auto Scaling group can draw on the warm pool to meet its new desired capacity.
This operation must be called from the Region in which the Auto Scaling group was created.
You can view the instances in the warm pool using the DescribeWarmPool API call. If you are no longer using a warm pool, you can delete it by calling the DeleteWarmPool API.
For more information, see Warm pools for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.
val error_to_string :
[ Smaws_Lib.Protocols.AwsQuery.error
| `InstanceRefreshInProgressFault of Types.instance_refresh_in_progress_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `ResourceContentionFault of Types.resource_contention_fault ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_warm_pool_type ->
(Types.put_warm_pool_answer,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InstanceRefreshInProgressFault of
Types.instance_refresh_in_progress_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `ResourceContentionFault of Types.resource_contention_fault ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_warm_pool_type ->
(Types.put_warm_pool_answer Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsQuery.error
| `InstanceRefreshInProgressFault of
Types.instance_refresh_in_progress_fault
| `LimitExceededFault of Types.limit_exceeded_fault
| `ResourceContentionFault of Types.resource_contention_fault ]
* Smaws_Lib.Response.metadata)
Stdlib.result