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/s3_bucket_lifecycle_configuration.html.markdown
+1-5Lines changed: 1 addition & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ See the Amazon S3 User Guide on [setting lifecycle configuration on a bucket](ht
28
28
29
29
### With neither a filter nor prefix specified
30
30
31
-
The Lifecycle rule applies to a subset of objects based on the key name prefix (`""`).
31
+
The Lifecycle rule applies to all objects in the bucket, i.e. it is equivalent to setting an empty `filter` element.
32
32
33
33
This configuration is intended to replicate the default behavior of the `lifecycle_rule`
34
34
parameter in the Terraform AWS Provider `aws_s3_bucket` resource prior to `v4.0`.
@@ -384,16 +384,12 @@ The `rule` configuration block supports the following arguments:
384
384
*`expiration` - (Optional) Configuration block that specifies the expiration for the lifecycle of the object in the form of date, days and, whether the object has a delete marker. [See below](#expiration).
385
385
*`filter` - (Optional) Configuration block used to identify objects that a Lifecycle Rule applies to.
386
386
[See below](#filter).
387
-
If not specified, the `rule` will default to using `prefix`.
388
-
One of `filter` or `prefix` should be specified.
389
387
*`id` - (Required) Unique identifier for the rule. The value cannot be longer than 255 characters.
390
388
*`noncurrent_version_expiration` - (Optional) Configuration block that specifies when noncurrent object versions expire. [See below](#noncurrent_version_expiration).
391
389
*`noncurrent_version_transition` - (Optional) Set of configuration blocks that specify the transition rule for the lifecycle rule that describes when noncurrent objects transition to a specific storage class. [See below](#noncurrent_version_transition).
392
390
*`prefix` - (Optional) **DEPRECATED** Use `filter` instead.
393
391
This has been deprecated by Amazon S3.
394
392
Prefix identifying one or more objects to which the rule applies.
395
-
Defaults to an empty string (`""`) if `filter` is not specified.
396
-
One of `prefix` or `filter` should be specified.
397
393
*`status` - (Required) Whether the rule is currently being applied. Valid values: `Enabled` or `Disabled`.
398
394
*`transition` - (Optional) Set of configuration blocks that specify when an Amazon S3 object transitions to a specified storage class. [See below](#transition).
0 commit comments