ScheduledTaskArgs

data class ScheduledTaskArgs(val description: Output<String>? = null, val desiredCapacity: Output<Int>? = null, val launchExpirationTime: Output<Int>? = null, val launchTime: Output<String>? = null, val maxValue: Output<Int>? = null, val minValue: Output<Int>? = null, val recurrenceEndTime: Output<String>? = null, val recurrenceType: Output<String>? = null, val recurrenceValue: Output<String>? = null, val scalingGroupId: Output<String>? = null, val scheduledAction: Output<String>? = null, val scheduledTaskName: Output<String>? = null, val taskEnabled: Output<Boolean>? = null) : ConvertibleToJava<ScheduledTaskArgs>

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

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, desiredCapacity: Output<Int>? = null, launchExpirationTime: Output<Int>? = null, launchTime: Output<String>? = null, maxValue: Output<Int>? = null, minValue: Output<Int>? = null, recurrenceEndTime: Output<String>? = null, recurrenceType: Output<String>? = null, recurrenceValue: Output<String>? = null, scalingGroupId: Output<String>? = null, scheduledAction: Output<String>? = null, scheduledTaskName: Output<String>? = null, taskEnabled: Output<Boolean>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

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

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

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 launchExpirationTime: Output<Int>? = null

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>? = null

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>? = null

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>? = null

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 recurrenceEndTime: Output<String>? = null

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>? = null

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>? = null

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>? = null

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>? = null

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
val scheduledTaskName: Output<String>? = null

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

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

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

Functions

Link copied to clipboard
open override fun toJava(): ScheduledTaskArgs