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
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,3 +51,14 @@ data "coder_workspace_preset" "example" {
51
51
Required:
52
52
53
53
-`instances` (Number) The number of workspaces to keep in reserve for this preset.
54
+
55
+
Optional:
56
+
57
+
-`cache_invalidation` (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--cache_invalidation))
Description: "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.",
92
+
Optional: true,
93
+
MaxItems: 1,
94
+
Elem: &schema.Resource{
95
+
Schema: map[string]*schema.Schema{
96
+
"invalidate_after_secs": {
97
+
Type: schema.TypeInt,
98
+
Description: "Time in seconds after which an unclaimed prebuild is considered expired and eligible for cleanup.",
99
+
Required: true,
100
+
ForceNew: true,
101
+
//Default: 86400, // TODO: Should we add a default value?
0 commit comments