Skip to content

Commit

Permalink
Clarify documentation regarding the required action and condition blo…
Browse files Browse the repository at this point in the history
…cks, and that at least one condition element has to be defined
  • Loading branch information
pdecat committed Jun 29, 2017
1 parent f6dadf2 commit 56b754d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions website/docs/r/storage_bucket.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,17 @@ to `google_storage_bucket_acl.predefined_acl`.

The `lifecycle_rule` block supports:

* `action` - The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.
* `action` - (Required) The Lifecycle Rule's action configuration. A single block of this type is supported. Structure is documented below.

* `condition` - The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.
* `condition` - (Required) The Lifecycle Rule's condition configuration. A single block of this type is supported. Structure is documented below.

The `action` block supports:

* `type` - The type of the action of this Lifecycle Rule. Supported values include: `Delete` and `SetStorageClass`.

* `storage_class` - (Required if action type is `SetStorageClass`) The target [Storage Class](https://cloud.google.com/storage/docs/storage-classes) of objects affected by this Lifecycle Rule. Supported values include: `MULTI_REGIONAL`, `REGIONAL`, `NEARLINE`, `COLDLINE`.

The `condition` block supports:
The `condition` block supports the following elements, and requires at least one to be defined:

* `age` - (Optional) Minimum age of an object in days to satisfy this condition.

Expand Down

0 comments on commit 56b754d

Please sign in to comment.