Schedules

A Schedule is a named, reusable weekday-and-time schedule shared by scheduled resources across a Site.

Resource Schema

Required

PropertyDescription
name
String
Schedule name.
schedule_days_of_week
List
0-based weekdays used by the Schedule. 0 is Sunday.
schedule_times_of_day
List
Times of day in HH:MM format (24-hour).

Optional

PropertyDescription
schedule_time_zone
String
Time zone for scheduled times. If not set, times are interpreted as UTC.
holiday_region
String
Optional holiday region on which linked resources do not run.

Read Only

PropertyDescription
id
Int64
Schedule ID.
human_readable_schedule
String
Human-readable Schedule description.
created_at
String
Creation time.
updated_at
String
Last update time.

Example Resource

resource "files_schedule" "example_schedule" {
  name                  = "Weekday overnight"
  schedule_days_of_week = [1, 2, 3, 4, 5]
  schedule_times_of_day = ["01:00"]
  schedule_time_zone    = "Eastern Time (US & Canada)"
  holiday_region        = "us"
}

Resource Import

This Resource supports importing using the following syntax:

Example Import Command

# Schedules can be imported by specifying the id.
terraform import files_schedule.example_schedule 1

Data Source Schema

Required

PropertyDescription
id
Int64
Schedule ID.

Read Only

PropertyDescription
name
String
Schedule name.
schedule_days_of_week
List
0-based weekdays used by the Schedule. 0 is Sunday.
schedule_times_of_day
List
Times of day in HH:MM format (24-hour).
schedule_time_zone
String
Time zone for scheduled times. If not set, times are interpreted as UTC.
holiday_region
String
Optional holiday region on which linked resources do not run.
human_readable_schedule
String
Human-readable Schedule description.
created_at
String
Creation time.
updated_at
String
Last update time.

Example Data Source

data "files_schedule" "example_schedule" {
  id = 1
}