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
+2-7Lines changed: 2 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,10 +28,9 @@ 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
+
When you don't specify a filter or prefix, the lifecycle rule applies to all objects in the bucket. This has the same effect as setting an empty `filter` element.
32
32
33
-
This configuration is intended to replicate the default behavior of the `lifecycle_rule`
34
-
parameter in the Terraform AWS Provider `aws_s3_bucket` resource prior to `v4.0`.
33
+
This configuration maintains compatibility with the default behavior of the `lifecycle_rule` parameter from the `aws_s3_bucket` resource in versions prior to v4.0 of the Terraform AWS Provider.
@@ -384,16 +383,12 @@ The `rule` configuration block supports the following arguments:
384
383
*`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
384
*`filter` - (Optional) Configuration block used to identify objects that a Lifecycle Rule applies to.
386
385
[See below](#filter).
387
-
If not specified, the `rule` will default to using `prefix`.
388
-
One of `filter` or `prefix` should be specified.
389
386
*`id` - (Required) Unique identifier for the rule. The value cannot be longer than 255 characters.
390
387
*`noncurrent_version_expiration` - (Optional) Configuration block that specifies when noncurrent object versions expire. [See below](#noncurrent_version_expiration).
391
388
*`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
389
*`prefix` - (Optional) **DEPRECATED** Use `filter` instead.
393
390
This has been deprecated by Amazon S3.
394
391
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
392
*`status` - (Required) Whether the rule is currently being applied. Valid values: `Enabled` or `Disabled`.
398
393
*`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