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
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,11 +54,11 @@ Required:
54
54
55
55
Optional:
56
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))
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))
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.",
97
97
Optional: true,
98
98
MaxItems: 1,
99
99
Elem: &schema.Resource{
100
100
Schema: map[string]*schema.Schema{
101
-
"invalidate_after_secs": {
101
+
"ttl": {
102
102
Type: schema.TypeInt,
103
103
Description: "Time in seconds after which an unclaimed prebuild is considered expired and eligible for cleanup.",
104
104
Required: true,
105
105
ForceNew: true,
106
-
// Ensure invalidation is between 0 and 604800 seconds (7 days) to prevent stale prebuilds
107
-
ValidateFunc: validation.IntBetween(0, 604800),
106
+
// Ensure invalidation is between 0 and 31536000 seconds (1 year) to prevent stale prebuilds
0 commit comments