github.com/danp/terraform@v0.9.5-0.20170426144147-39d740081351/website/source/docs/providers/alicloud/r/ess_schedule.html.markdown (about) 1 --- 2 layout: "alicloud" 3 page_title: "Alicloud: alicloud_ess_schedule" 4 sidebar_current: "docs-alicloud-resource-ess-schedule" 5 description: |- 6 Provides a ESS schedule resource. 7 --- 8 9 # alicloud\_ess\_schedule 10 11 Provides a ESS schedule resource. 12 13 ## Example Usage 14 15 ``` 16 resource "alicloud_ess_scaling_group" "scaling" { 17 # Other parameters... 18 } 19 20 resource "alicloud_ess_scaling_configuration" "config" { 21 # Other parameters... 22 } 23 24 resource "alicloud_ess_scaling_rule" "rule" { 25 # Other parameters... 26 } 27 28 resource "alicloud_ess_schedule" "schedule" { 29 scheduled_action = "${alicloud_ess_scaling_rule.rule.ari}" 30 launch_time = "2017-04-29T07:30Z" 31 scheduled_task_name = "sg-schedule" 32 } 33 ``` 34 35 ## Argument Reference 36 37 The following arguments are supported: 38 39 * `scheduled_action` - (Required) Operations performed when the scheduled task is triggered. Fill in the unique identifier of the scaling rule. 40 * `launch_time` - (Required) Operations performed when the scheduled task is triggered. Fill in the unique identifier of the scaling rule. 41 * `scheduled_task_name` - (Optional) Display name of the scheduled task, which must be 2-40 characters (English or Chinese) long. 42 * `description` - (Optional) Description of the scheduled task, which is 2-200 characters (English or Chinese) long. 43 * `launch_expiration_time` - (Optional) Time period within which the failed scheduled task is retried. The default value is 600s. Value range: [0, 21600] 44 * `recurrence_type` - (Optional) Type of the scheduled task to be repeated. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified. Optional values: 45 - Daily: Recurrence interval by day for a scheduled task. 46 - Weekly: Recurrence interval by week for a scheduled task. 47 - Monthly: Recurrence interval by month for a scheduled task. 48 * `recurrence_value` - (Optional) Value of the scheduled task to be repeated. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified. 49 - Daily: Only one value in the range [1,31] can be filled. 50 - Weekly: Multiple values can be filled. The values of Sunday to Saturday are 0 to 6 in sequence. Multiple values shall be separated by a comma “,”. 51 - Monthly: In the format of A-B. The value range of A and B is 1 to 31, and the B value must be greater than the A value. 52 * `recurrence_end_time` - (Optional) End time of the scheduled task to be repeated. The date format follows the ISO8601 standard and uses UTC time. It is in the format of YYYY-MM-DDThh:mmZ. A time point 90 days after creation or modification cannot be entered. RecurrenceType, RecurrenceValue and RecurrenceEndTime must be specified. 53 * `task_enabled` - (Optional) Whether to enable the scheduled task. The default value is true. 54 55 56 ## Attributes Reference 57 58 The following attributes are exported: 59 60 * `id` - The schedule task ID. 61 * `scheduled_action` - The action of schedule task. 62 * `launch_time` - The time of schedule task be triggered. 63 * `scheduled_task_name` - The name of schedule task. 64 * `description` - The description of schedule task. 65 * `task_enabled` - Wether the task is enabled.