Scheduled Task
Provides a ESS schedule resource. For information about ess schedule task, see Scheduled Tasks.
NOTE: Available since v1.60.0.
Import
ESS schedule task can be imported using the id, e.g.
$ pulumi import alicloud:ess/scheduledTask:ScheduledTask example abc123456
Properties
Description of the scheduled task, which is 2-200 characters (English or Chinese) long.
The expected number of instances in a scaling group when the scaling method of the scheduled task is to specify the number of instances in a scaling group. NOTE: You must specify the DesiredCapacity
parameter when you create the scaling group.
The time period during which a failed scheduled task is retried. Unit: seconds. Valid values: 0 to 1800, Available since v1.240.0. Default value: 600
The time at which the scheduled task is triggered. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mmZ format. The time must be in UTC. You cannot enter a time point later than 90 days from the date of scheduled task creation. If the recurrence_type
parameter is specified, the task is executed repeatedly at the time specified by LaunchTime. Otherwise, the task is only executed once at the date and time specified by LaunchTime.
Specifies the end time after which the scheduled task is no longer repeated. Specify the time in the ISO 8601 standard in the YYYY-MM-DDThh:mm:ssZ format. The time must be in UTC. You cannot enter a time point later than 365 days from the date of scheduled task creation. NOTE: You must specify RecurrenceType
, RecurrenceValue
, and RecurrenceEndTime
at the same time.
Specifies the recurrence type of the scheduled task. NOTE: You must specify RecurrenceType
, RecurrenceValue
, and RecurrenceEndTime
at the same time. Valid values:
Specifies how often a scheduled task recurs. NOTE: You must specify RecurrenceType
, RecurrenceValue
, and RecurrenceEndTime
at the same time. The valid value depends on recurrence_type
The ID of the scaling group where the number of instances is modified when the scheduled task is triggered. After the ScalingGroupId
parameter is specified, the scaling method of the scheduled task is to specify the number of instances in a scaling group. You must specify at least one of the following parameters: MinValue
, MaxValue
, and DesiredCapacity
. NOTE: You cannot specify scheduled_action
and scaling_group_id
at the same time.
The operation to be performed when a scheduled task is triggered. Enter the unique identifier of a scaling rule. NOTE: You cannot specify scheduled_action
and scaling_group_id
at the same time.
Display name of the scheduled task, which must be 2-40 characters (English or Chinese) long.
Specifies whether to start the scheduled task. Default to true.