Skip to content

Commit 4242ea7

Browse files
authored
fix(cos): [143453387] tencentcloud_cos_bucket update filter_prefix property (#3419)
* add * add
1 parent cc20bc4 commit 4242ea7

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

.changelog/3419.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cos_bucket: update `filter_prefix` property
3+
```

tencentcloud/services/cos/resource_tc_cos_bucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ func ResourceTencentCloudCosBucket() *schema.Resource {
358358
},
359359
"filter_prefix": {
360360
Type: schema.TypeString,
361-
Required: true,
361+
Optional: true,
362362
Description: "Object key prefix identifying one or more objects to which the rule applies.",
363363
},
364364
"transition": {

website/docs/r/cos_bucket.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ The `expiration` object of `lifecycle_rules` supports the following:
491491

492492
The `lifecycle_rules` object supports the following:
493493

494-
* `filter_prefix` - (Required, String) Object key prefix identifying one or more objects to which the rule applies.
495494
* `abort_incomplete_multipart_upload` - (Optional, Set) Set the maximum time a multipart upload is allowed to remain running.
496495
* `expiration` - (Optional, Set) Specifies a period in the object's expire (documented below).
496+
* `filter_prefix` - (Optional, String) Object key prefix identifying one or more objects to which the rule applies.
497497
* `id` - (Optional, String) A unique identifier for the rule. It can be up to 255 characters.
498498
* `non_current_expiration` - (Optional, Set) Specifies when non current object versions shall expire.
499499
* `non_current_transition` - (Optional, Set) Specifies a period in the non current object's transitions.

0 commit comments

Comments
 (0)