Skip to content

Commit 1120944

Browse files
authored
fix(cos): [139376671] tencentcloud_cos_buckets update doc (#3264)
* add * add
1 parent 42c3eb5 commit 1120944

File tree

3 files changed

+30
-7
lines changed

3 files changed

+30
-7
lines changed

.changelog/3264.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_cos_buckets: update doc
3+
```

tencentcloud/services/cos/data_source_tc_cos_buckets.md

+14-4
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,19 @@ Use this data source to query the COS buckets of the current Tencent Cloud user.
22

33
Example Usage
44

5+
Query all cos buckets
6+
7+
```hcl
8+
data "tencentcloud_cos_buckets" "example" {}
9+
```
10+
11+
Query cos buckets by filters
12+
513
```hcl
6-
data "tencentcloud_cos_buckets" "cos_buckets" {
7-
bucket_prefix = "tf-bucket-"
8-
result_output_file = "mytestpath"
14+
data "tencentcloud_cos_buckets" "example" {
15+
bucket_prefix = "tf-example-prefix"
16+
tags = {
17+
createBy = "Terraform"
18+
}
919
}
10-
```
20+
```

website/docs/d/cos_buckets.html.markdown

+13-3
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,20 @@ Use this data source to query the COS buckets of the current Tencent Cloud user.
1313

1414
## Example Usage
1515

16+
### Query all cos buckets
17+
18+
```hcl
19+
data "tencentcloud_cos_buckets" "example" {}
20+
```
21+
22+
### Query cos buckets by filters
23+
1624
```hcl
17-
data "tencentcloud_cos_buckets" "cos_buckets" {
18-
bucket_prefix = "tf-bucket-"
19-
result_output_file = "mytestpath"
25+
data "tencentcloud_cos_buckets" "example" {
26+
bucket_prefix = "tf-example-prefix"
27+
tags = {
28+
createBy = "Terraform"
29+
}
2030
}
2131
```
2232

0 commit comments

Comments
 (0)