ScheduledTask

class ScheduledTask : KotlinCustomResource

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

Link copied to clipboard
val description: Output<String>

Description of the scheduled task, which is 2-200 characters (English or Chinese) long.

Link copied to clipboard
val desiredCapacity: Output<Int>?

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.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

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

Link copied to clipboard
val launchTime: Output<String>?

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.

Link copied to clipboard
val maxValue: Output<Int>?

The maximum 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.

Link copied to clipboard
val minValue: Output<Int>?

The minimum 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.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

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.

Link copied to clipboard
val recurrenceType: Output<String>

Specifies the recurrence type of the scheduled task. NOTE: You must specify RecurrenceType, RecurrenceValue, and RecurrenceEndTime at the same time. Valid values:

Link copied to clipboard
val recurrenceValue: Output<String>

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

Link copied to clipboard
val scalingGroupId: Output<String>

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.

Link copied to clipboard
val scheduledAction: Output<String>?

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.

Link copied to clipboard

Display name of the scheduled task, which must be 2-40 characters (English or Chinese) long.

Link copied to clipboard
val taskEnabled: Output<Boolean>?

Specifies whether to start the scheduled task. Default to true.

Link copied to clipboard
val urn: Output<String>