ALIYUN::ESS::ScheduledTask creates a scheduled task based on specified properties.
Syntax
{
"Type": "ALIYUN::ESS::ScheduledTask",
"Properties": {
"TaskEnabled": Boolean,
"Description": String,
"ScheduledTaskName": String,
"LaunchExpirationTime": Integer,
"LaunchTime": String,
"RecurrenceEndTime": String,
"RecurrenceType": String,
"RecurrenceValue": String,
"ScheduledAction": String,
"MaxValue": Integer,
"MinValue": Integer,
"DesiredCapacity": Integer,
"ScalingGroupId": String
}
}
Properties
|
Property |
Type |
Required |
Editable |
Description |
Constraint |
|
TaskEnabled |
Boolean |
No |
Yes |
Whether to enable the scheduled task. |
Valid values:
|
|
Description |
String |
No |
Yes |
Description of the scheduled task. |
2 to 200 characters. |
|
ScheduledTaskName |
String |
No |
Yes |
Display name of the scheduled task. |
2 to 40 characters. Can contain letters, digits, underscores (_), hyphens (-), and periods (.). Must start with a letter or digit. Must be unique within an account in a region. Default: the ScheduledScalingTaskId value. |
|
LaunchExpirationTime |
Integer |
No |
Yes |
Retry window if the task fails to trigger. |
Valid values: 0 to 21600. Unit: seconds. Default value: 600. |
|
LaunchTime |
String |
Yes |
Yes |
Time when the task triggers. |
ISO 8601 format: Must be in UTC.
Must be within 90 days of task creation or modification. |
|
RecurrenceEndTime |
String |
No |
Yes |
End time for recurring execution. |
ISO 8601 format: Must be in UTC. Must be within 90 days of task creation or modification. RecurrenceType, RecurrenceValue, and RecurrenceEndTime must be specified together. |
|
RecurrenceType |
String |
No |
Yes |
Recurrence interval type. |
Valid values:
RecurrenceType, RecurrenceValue, and RecurrenceEndTime must be specified together. |
|
RecurrenceValue |
String |
No |
Yes |
Recurrence value for the scheduled task. |
Valid values:
RecurrenceType, RecurrenceValue, and RecurrenceEndTime must be specified together. |
|
ScheduledAction |
String |
No |
Yes |
Operation to run when the task triggers. |
Up to 200 characters. Set to the unique identifier of a scaling rule. |
|
MaxValue |
Integer |
No |
Yes |
Maximum number of instances in the scaling group. Applies when ScalingGroupId is specified. |
None. |
|
MinValue |
Integer |
No |
Yes |
Minimum number of instances in the scaling group. Applies when ScalingGroupId is specified. |
None. |
|
DesiredCapacity |
Integer |
No |
Yes |
Expected number of instances in the scaling group. Applies when ScalingGroupId is specified. |
|
|
ScalingGroupId |
String |
No |
Yes |
ID of the scaling group to scale when the task triggers. |
When Note
You cannot specify both |
Return values
Fn::GetAtt
ScheduledTaskId: globally unique ID of the scheduled task, generated by the system.