Skip to content

Commit dc1e468

Browse files
author
mikatong
committed
update
1 parent 1bd6afd commit dc1e468

4 files changed

+6
-4
lines changed

tencentcloud/services/mongodb/resource_tc_mongodb_instance_backup_rule.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ func ResourceTencentCloudMongodbInstanceBackupRule() *schema.Resource {
2323
Schema: map[string]*schema.Schema{
2424
"instance_id": {
2525
Required: true,
26+
ForceNew: true,
2627
Type: schema.TypeString,
2728
Description: "Instance id.",
2829
},

tencentcloud/services/mongodb/resource_tc_mongodb_instance_transparent_data_encryption.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ func ResourceTencentCloudMongodbInstanceTransparentDataEncryption() *schema.Reso
2828
Schema: map[string]*schema.Schema{
2929
"instance_id": {
3030
Required: true,
31+
ForceNew: true,
3132
Type: schema.TypeString,
3233
Description: "Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.",
3334
},
@@ -41,7 +42,7 @@ func ResourceTencentCloudMongodbInstanceTransparentDataEncryption() *schema.Reso
4142
"key_id": {
4243
Optional: true,
4344
Type: schema.TypeString,
44-
Description: "Key ID. If this parameter is not set and the specific key ID is not specified, Tencent Cloud will automatically generate the key.",
45+
Description: "Key ID. If this parameter is not set and the specific key ID is not specified, Tencent Cloud will automatically generate the key and this key will be beyond the control of Terraform.",
4546
},
4647
"transparent_data_encryption_status": {
4748
Computed: true,

website/docs/r/mongodb_instance_backup_rule.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The following arguments are supported:
3030
- 1: Physical backup;
3131
- 3: Snapshot backup (supported only in cloud disk version).
3232
* `backup_time` - (Required, Int) Set the start time for automatic backup. The value range is: [0,23]. For example, setting this parameter to 2 means that backup starts at 02:00.
33-
* `instance_id` - (Required, String) Instance id.
33+
* `instance_id` - (Required, String, ForceNew) Instance id.
3434
* `backup_retention_period` - (Optional, Int) Specify the number of days to save backup data. The default is 7 days, and the support settings are 7, 30, 90, 180, 365.
3535

3636
## Attributes Reference

website/docs/r/mongodb_instance_transparent_data_encryption.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ resource "tencentcloud_mongodb_instance_transparent_data_encryption" "encryption
2424

2525
The following arguments are supported:
2626

27-
* `instance_id` - (Required, String) Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
27+
* `instance_id` - (Required, String, ForceNew) Instance ID, for example: cmgo-p8vn ***. Currently supported general versions include: 4.4 and 5.0, but the cloud disk version is not currently supported.
2828
* `kms_region` - (Required, String) The region where the Key Management Service (KMS) serves, such as ap-shanghai.
29-
* `key_id` - (Optional, String) Key ID. If this parameter is not set and the specific key ID is not specified, Tencent Cloud will automatically generate the key.
29+
* `key_id` - (Optional, String) Key ID. If this parameter is not set and the specific key ID is not specified, Tencent Cloud will automatically generate the key and this key will be beyond the control of Terraform.
3030

3131
## Attributes Reference
3232

0 commit comments

Comments
 (0)