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: google/services/logging/resource_logging_project_bucket_config.go
+35-1
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,11 @@ var loggingProjectBucketConfigSchema = map[string]*schema.Schema{
44
44
Computed: true,
45
45
Description: `An optional description for this bucket.`,
46
46
},
47
+
"locked": {
48
+
Type: schema.TypeBool,
49
+
Optional: true,
50
+
Description: `Whether the bucket is locked. The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty.`,
51
+
},
47
52
"retention_days": {
48
53
Type: schema.TypeInt,
49
54
Optional: true,
@@ -185,9 +190,9 @@ func resourceLoggingProjectBucketConfigCreate(d *schema.ResourceData, meta inter
Copy file name to clipboardExpand all lines: website/docs/r/logging_project_bucket_config.html.markdown
+2
Original file line number
Diff line number
Diff line change
@@ -105,6 +105,8 @@ The following arguments are supported:
105
105
106
106
*`description` - (Optional) Describes this bucket.
107
107
108
+
*`locked` - (Optional) Whether the bucket is locked. The retention period on a locked bucket cannot be changed. Locked buckets may only be deleted if they are empty.
109
+
108
110
*`retention_days` - (Optional) Logs will be retained by default for this amount of time, after which they will automatically be deleted. The minimum retention period is 1 day. If this value is set to zero at bucket creation time, the default time of 30 days will be used.
109
111
110
112
*`enable_analytics` - (Optional) Whether or not Log Analytics is enabled. Logs for buckets with Log Analytics enabled can be queried in the **Log Analytics** page using SQL queries. Cannot be disabled once enabled.
0 commit comments