Class ScheduledTaskState
Inherited Members
Namespace: Pulumi.AliCloud.Ess
Assembly: Pulumi.AliCloud.dll
Syntax
public sealed class ScheduledTaskState : ResourceArgs
Constructors
View SourceScheduledTaskState()
Declaration
public ScheduledTaskState()
Properties
View SourceDescription
Description of the scheduled task, which is 2-200 characters (English or Chinese) long.
Declaration
public Input<string> Description { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
LaunchExpirationTime
The time period during which a failed scheduled task is retried. Unit: seconds. Valid values: 0 to 21600. Default value: 600
Declaration
public Input<int> LaunchExpirationTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Int32> |
LaunchTime
The time at which the scheduled task is triggered. 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 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.
Declaration
public Input<string> LaunchTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RecurrenceEndTime
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.
Declaration
public Input<string> RecurrenceEndTime { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RecurrenceType
Specifies the recurrence type of the scheduled task.
If set, both recurrence_value and recurrence_end_time must be set. Valid values:
- Daily: The scheduled task is executed once every specified number of days.
- Weekly: The scheduled task is executed on each specified day of a week.
- Monthly: The scheduled task is executed on each specified day of a month.
- Cron: (Available in 1.60.0+) The scheduled task is executed based on the specified cron expression.
Declaration
public Input<string> RecurrenceType { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
RecurrenceValue
Specifies how often a scheduled task recurs. The valid value depends on recurrence_type
- Daily: You can enter one value. Valid values: 1 to 31.
- Weekly: You can enter multiple values and separate them with commas (,). For example, the values 0 to 6 correspond to the days of the week in sequence from Sunday to Saturday.
- Monthly: You can enter two values in A-B format. Valid values of A and B: 1 to 31. The value of B must be greater than or equal to the value of A.
- Cron: You can enter a cron expression which is written in UTC and consists of five fields: minute, hour, day of month (date), month, and day of week. The expression can contain wildcard characters including commas (,), question marks (?), hyphens (-), asterisks (*), number signs (#), forward slashes (/), and the L and W letters.
Declaration
public Input<string> RecurrenceValue { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ScheduledAction
The operation to be performed when a scheduled task is triggered. Enter the unique identifier of a scaling rule.
Declaration
public Input<string> ScheduledAction { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
ScheduledTaskName
Display name of the scheduled task, which must be 2-40 characters (English or Chinese) long.
Declaration
public Input<string> ScheduledTaskName { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.String> |
TaskEnabled
Specifies whether to start the scheduled task. Default to true.
Declaration
public Input<bool> TaskEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| Input<System.Boolean> |