Description Usage Arguments Value Request syntax
View source: R/applicationautoscaling_operations.R
Creates 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 start and end times are specified with a recurring schedule using a cron expression or rates, they form the boundaries of 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.
1 2 3 | applicationautoscaling_put_scheduled_action(ServiceNamespace, Schedule,
ScheduledActionName, ResourceId, ScalableDimension, StartTime, EndTime,
ScalableTargetAction)
|
ServiceNamespace |
[required] The namespace of the AWS service that provides the resource. For a
resource provided by your own application or service, use
|
Schedule |
The schedule for this action. The following formats are supported:
At expressions are useful for one-time schedules. Specify the time in UTC. For rate expressions, value is a positive integer and unit is
For cron expressions, fields is a cron expression. The supported cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year]. For more information and examples, see Scheduled Scaling in the Application Auto Scaling User Guide. |
ScheduledActionName |
[required] The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target. |
ResourceId |
[required] The identifier of the resource associated with the scheduled action. This string consists of the resource type and unique identifier.
|
ScalableDimension |
[required] The scalable dimension. This string consists of the service namespace, resource type, and scaling property.
|
StartTime |
The date and time for this scheduled action to start. |
EndTime |
The date and time for the recurring schedule to end. |
ScalableTargetAction |
The new minimum and maximum capacity. You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. |
An empty list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | svc$put_scheduled_action(
ServiceNamespace = "ecs"|"elasticmapreduce"|"ec2"|"appstream"|"dynamodb"|"rds"|"sagemaker"|"custom-resource"|"comprehend"|"lambda"|"cassandra"|"kafka",
Schedule = "string",
ScheduledActionName = "string",
ResourceId = "string",
ScalableDimension = "ecs:service:DesiredCount"|"ec2:spot-fleet-request:TargetCapacity"|"elasticmapreduce:instancegroup:InstanceCount"|"appstream:fleet:DesiredCapacity"|"dynamodb:table:ReadCapacityUnits"|"dynamodb:table:WriteCapacityUnits"|"dynamodb:index:ReadCapacityUnits"|"dynamodb:index:WriteCapacityUnits"|"rds:cluster:ReadReplicaCount"|"sagemaker:variant:DesiredInstanceCount"|"custom-resource:ResourceType:Property"|"comprehend:document-classifier-endpoint:DesiredInferenceUnits"|"comprehend:entity-recognizer-endpoint:DesiredInferenceUnits"|"lambda:function:ProvisionedConcurrency"|"cassandra:table:ReadCapacityUnits"|"cassandra:table:WriteCapacityUnits"|"kafka:broker-storage:VolumeSize",
StartTime = as.POSIXct(
"2015-01-01"
),
EndTime = as.POSIXct(
"2015-01-01"
),
ScalableTargetAction = list(
MinCapacity = 123,
MaxCapacity = 123
)
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.