Skip to content

Commit 223b7d0

Browse files
authored
fix(cos): [122360836] tencentcloud_cos_bucket update doc (#3214)
* add * add
1 parent 81de2da commit 223b7d0

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

.changelog/3214.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 doc
3+
```

tencentcloud/services/cos/resource_tc_cos_bucket.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ func ResourceTencentCloudCosBucket() *schema.Resource {
188188
"encryption_algorithm": {
189189
Type: schema.TypeString,
190190
Optional: true,
191-
Description: "The server-side encryption algorithm to use. Valid values are `AES256`, `KMS` and `cos/kms`, `cos/kms` is for cdc cos scenario.",
191+
Description: "The server-side encryption algorithm to use. Valid values are `AES256`, `KMS` and `SM4`.",
192192
},
193193
"kms_id": {
194194
Type: schema.TypeString,
195195
Optional: true,
196-
Description: "The KMS Master Key ID. This value is valid only when `encryption_algorithm` is set to KMS or cos/kms. Set kms id to the specified value. If not specified, the default kms id is used.",
196+
Description: "The KMS Master Key ID. This value is valid only when `encryption_algorithm` is set to KMS. Set kms id to the specified value. If not specified, the default kms id is used.",
197197
},
198198
"versioning_enable": {
199199
Type: schema.TypeBool,

tencentcloud/services/cos/resource_tc_cos_bucket.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ resource "tencentcloud_kms_key" "example" {
6969
resource "tencentcloud_cos_bucket" "bucket_basic" {
7070
bucket = "tf-bucket-cdc-${local.app_id}"
7171
acl = "private"
72-
encryption_algorithm = "KMS" #cos/kms for cdc cos
72+
encryption_algorithm = "KMS"
7373
kms_id = tencentcloud_kms_key.example.id
7474
versioning_enable = true
7575
acceleration_enable = false

website/docs/r/cos_bucket.html.markdown

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ resource "tencentcloud_kms_key" "example" {
8080
resource "tencentcloud_cos_bucket" "bucket_basic" {
8181
bucket = "tf-bucket-cdc-${local.app_id}"
8282
acl = "private"
83-
encryption_algorithm = "KMS" #cos/kms for cdc cos
83+
encryption_algorithm = "KMS"
8484
kms_id = tencentcloud_kms_key.example.id
8585
versioning_enable = true
8686
acceleration_enable = false
@@ -428,11 +428,11 @@ The following arguments are supported:
428428
* `cdc_id` - (Optional, String, ForceNew) CDC cluster ID.
429429
* `cors_rules` - (Optional, List) A rule of Cross-Origin Resource Sharing (documented below).
430430
* `enable_intelligent_tiering` - (Optional, Bool) Enable intelligent tiering. NOTE: When intelligent tiering configuration is enabled, it cannot be turned off or modified.
431-
* `encryption_algorithm` - (Optional, String) The server-side encryption algorithm to use. Valid values are `AES256`, `KMS` and `cos/kms`, `cos/kms` is for cdc cos scenario.
431+
* `encryption_algorithm` - (Optional, String) The server-side encryption algorithm to use. Valid values are `AES256`, `KMS` and `SM4`.
432432
* `force_clean` - (Optional, Bool) Force cleanup all objects before delete bucket.
433433
* `intelligent_tiering_days` - (Optional, Int) Specifies the limit of days for standard-tier data to low-frequency data in an intelligent tiered storage configuration, with optional days of 30, 60, 90. Default value is 30.
434434
* `intelligent_tiering_request_frequent` - (Optional, Int) Specify the access limit for converting standard layer data into low-frequency layer data in the configuration. The default value is once, which can be used in combination with the number of days to achieve the conversion effect. For example, if the parameter is set to 1 and the number of access days is 30, it means that objects with less than one visit in 30 consecutive days will be reduced from the standard layer to the low frequency layer.
435-
* `kms_id` - (Optional, String) The KMS Master Key ID. This value is valid only when `encryption_algorithm` is set to KMS or cos/kms. Set kms id to the specified value. If not specified, the default kms id is used.
435+
* `kms_id` - (Optional, String) The KMS Master Key ID. This value is valid only when `encryption_algorithm` is set to KMS. Set kms id to the specified value. If not specified, the default kms id is used.
436436
* `lifecycle_rules` - (Optional, List) A configuration of object lifecycle management (documented below).
437437
* `log_enable` - (Optional, Bool) Indicate the access log of this bucket to be saved or not. Default is `false`. If set `true`, the access log will be saved with `log_target_bucket`. To enable log, the full access of log service must be granted. [Full Access Role Policy](https://intl.cloud.tencent.com/document/product/436/16920).
438438
* `log_prefix` - (Optional, String) The prefix log name which saves the access log of this bucket per 5 minutes. Eg. `MyLogPrefix/`. The log access file format is `log_target_bucket`/`log_prefix`{YYYY}/{MM}/{DD}/{time}_{random}_{index}.gz. Only valid when `log_enable` is `true`.

0 commit comments

Comments
 (0)