Module Smaws_Client_AutoScaling.PutScalingPolicy

Creates or updates a scaling policy for an Auto Scaling group. Scaling policies are used to scale an Auto Scaling group based on configurable metrics. If no policies are defined, the dynamic scaling and predictive scaling features are not used.

For more information about using dynamic scaling, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.

For more information about using predictive scaling, see Predictive scaling for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide.

You can view the scaling policies for an Auto Scaling group using the DescribePolicies API call. If you are no longer using a scaling policy, you can delete it by calling the DeletePolicy API.

val error_to_string : [ Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededFault of Types.limit_exceeded_fault | `ResourceContentionFault of Types.resource_contention_fault | `ServiceLinkedRoleFailure of Types.service_linked_role_failure ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.put_scaling_policy_type -> (Types.policy_arn_type, [> Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededFault of Types.limit_exceeded_fault | `ResourceContentionFault of Types.resource_contention_fault | `ServiceLinkedRoleFailure of Types.service_linked_role_failure ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.put_scaling_policy_type -> (Types.policy_arn_type Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsQuery.error | `LimitExceededFault of Types.limit_exceeded_fault | `ResourceContentionFault of Types.resource_contention_fault | `ServiceLinkedRoleFailure of Types.service_linked_role_failure ] * Smaws_Lib.Response.metadata) Stdlib.result