You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/data-sources/workspace_preset.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -55,10 +55,27 @@ Required:
55
55
Optional:
56
56
57
57
-`expiration_policy` (Block Set, Max: 1) Configuration block that defines TTL (time-to-live) behavior for prebuilds. Use this to automatically invalidate and delete prebuilds after a certain period, ensuring they stay up-to-date. (see[below for nested schema](#nestedblock--prebuilds--expiration_policy))
58
+
-`autoscaling` (Block Set, Max: 1) Configuration block that defines autoscaling behavior for prebuilds. Use this to automatically adjust the number of prebuild instances based on a schedule. (see[below for nested schema](#nestedblock--prebuilds--autoscaling))
-`ttl` (Number) Time in seconds after which an unclaimed prebuild is considered expired and eligible for cleanup.
66
+
67
+
<aid="nestedblock--prebuilds--autoscaling"></a>
68
+
###Nested Schema for`prebuilds.autoscaling`
69
+
70
+
Required:
71
+
72
+
-`timezone` (String) The timezone to use for the autoscaling schedule (e.g., "UTC", "America/New_York").
73
+
-`schedule` (Block Set, Min: 1) One or more schedule blocks that define when to scale the number of prebuild instances. (see[below for nested schema](#nestedblock--prebuilds--autoscaling--schedule))
-`cron` (String) A cron expression that defines when this schedule should be active. The cron expression must be in the format "* HOUR * * DAY-OF-WEEK" where HOUR is 0-23 and DAY-OF-WEEK is 0-6 (Sunday-Saturday) or 1-7 (Monday-Sunday). The minute, day-of-month, and month fields must be "*".
81
+
-`instances` (Number) The number of prebuild instances to maintain during this schedule period.