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: website/docs/r/storage_bucket.html.markdown
+6
Original file line number
Diff line number
Diff line change
@@ -58,6 +58,8 @@ to `google_storage_bucket_acl.predefined_acl`.
58
58
59
59
*`lifecycle_rule` - (Optional) The bucket's [Lifecycle Rules](https://cloud.google.com/storage/docs/lifecycle#configuration) configuration. Multiple blocks of this type are permitted. Structure is documented below.
60
60
61
+
*`versioning` - (Optional) The bucket's [Versioning](https://cloud.google.com/storage/docs/object-versioning) configuration.
62
+
61
63
*`website` - (Optional) Configuration if the bucket acts as a website. Structure is documented below.
62
64
63
65
*`cors` - (Optional) The bucket's [Cross-Origin Resource Sharing (CORS)](https://www.w3.org/TR/cors/) configuration. Multiple blocks of this type are permitted. Structure is documented below.
@@ -86,6 +88,10 @@ The `condition` block supports the following elements, and requires at least one
86
88
87
89
*`num_newer_versions` - (Optional) Relevant only for versioned objects. The number of newer versions of an object to satisfy this condition.
88
90
91
+
The `versioning` block supports:
92
+
93
+
*`enabled` - (Optional) While set to `true`, versioning is fully enabled for this bucket.
94
+
89
95
The `website` block supports:
90
96
91
97
*`main_page_suffix` - (Optional) Behaves as the bucket's directory index where
0 commit comments