AWS::ApplicationAutoScaling::ScalableTarget ScheduledAction - AWS CloudFormation

AWS::ApplicationAutoScaling::ScalableTarget ScheduledAction

ScheduledAction is a property of ScalableTarget that specifies a scheduled action for a scalable target.

For more information, see PutScheduledAction in the Application Auto Scaling API Reference.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "EndTime" : Timestamp, "ScalableTargetAction" : ScalableTargetAction, "Schedule" : String, "ScheduledActionName" : String, "StartTime" : Timestamp }

Properties

EndTime

The date and time for the recurring schedule to end.

Required: No

Type: Timestamp

Update requires: No interruption

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.

Required: No

Type: ScalableTargetAction

Update requires: No interruption

Schedule

The schedule for this action. The following formats are supported:

  • At expressions - "at(yyyy-mm-ddThh:mm:ss)"

  • Rate expressions - "rate(value unit)"

  • Cron expressions - "cron(fields)"

At expressions are useful for one-time schedules. Specify the time in UTC.

For rate expressions, value is a positive integer and unit is minute | minutes | hour | hours | day | days.

For more information about cron expressions, see Cron Expressions in the Amazon CloudWatch Events User Guide.

Required: Yes

Type: String

Minimum: 1

Maximum: 1600

Pattern: [\u0020-\uD7FF\uE000-\uFFFD\uD800\uDC00-\uDBFF\uDFFF\r\n\t]*

Update requires: No interruption

ScheduledActionName

The name of the scheduled action. This name must be unique among all other scheduled actions on the specified scalable target.

Required: Yes

Type: String

Minimum: 1

Maximum: 256

Pattern: (?!((^[ ]+.*)|(.*([\u0000-\u001f]|[\u007f-\u009f]|[:/|])+.*)|(.*[ ]+$))).+

Update requires: No interruption

StartTime

The date and time that the action is scheduled to start.

Required: No

Type: Timestamp

Update requires: No interruption

See also