Smaws_Client_ApplicationAutoScaling.PutScheduledActionCreates or updates a scheduled action for an Application Auto Scaling scalable target.
Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action until you have registered the resource as a scalable target.
When you specify start and end times with a recurring schedule using a cron expression or rates, they form the boundaries for when the recurring action starts and stops.
To update a scheduled action, specify the parameters that you want to change. If you don't specify start and end times, the old values are deleted.
For more information, see Scheduled scaling in the Application Auto Scaling User Guide.
If a scalable target is deregistered, the scalable target is no longer available to run scheduled actions. Any scheduled actions that were specified for the scalable target are deleted.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentUpdateException of Types.concurrent_update_exception
| `InternalServiceException of Types.internal_service_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ObjectNotFoundException of Types.object_not_found_exception
| `ValidationException of Types.validation_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.put_scheduled_action_request ->
(Types.put_scheduled_action_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentUpdateException of Types.concurrent_update_exception
| `InternalServiceException of Types.internal_service_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ObjectNotFoundException of Types.object_not_found_exception
| `ValidationException of Types.validation_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.put_scheduled_action_request ->
(Types.put_scheduled_action_response Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConcurrentUpdateException of Types.concurrent_update_exception
| `InternalServiceException of Types.internal_service_exception
| `LimitExceededException of Types.limit_exceeded_exception
| `ObjectNotFoundException of Types.object_not_found_exception
| `ValidationException of Types.validation_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result