Skip to content

Commit 6a62fa7

Browse files
author
mikatong
committed
update
1 parent d4ab46f commit 6a62fa7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tencentcloud/services/mongodb/resource_tc_mongodb_instance_params.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func ResourceTencentCloudMongodbInstanceParams() *schema.Resource {
2828
},
2929

3030
"instance_params": {
31-
Type: schema.TypeList,
31+
Type: schema.TypeSet,
3232
Required: true,
3333
Description: "Specify the parameter name and value to be modified.",
3434
Elem: &schema.Resource{
@@ -89,7 +89,7 @@ func resourceTencentCloudMongodbInstanceParamsRead(d *schema.ResourceData, meta
8989

9090
_ = d.Set("instance_id", instanceId)
9191

92-
instanceParams := d.Get("instance_params").([]interface{})
92+
instanceParams := d.Get("instance_params").(*schema.Set).List()
9393
paramNames := make([]string, 0)
9494
for _, instanceParam := range instanceParams {
9595
instanceParamMap := instanceParam.(map[string]interface{})

website/docs/r/mongodb_instance_params.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "tencentcloud_mongodb_instance_params" "mongodb_instance_params" {
2828
The following arguments are supported:
2929

3030
* `instance_id` - (Required, String, ForceNew) Instance id.
31-
* `instance_params` - (Required, List) Specify the parameter name and value to be modified.
31+
* `instance_params` - (Required, Set) Specify the parameter name and value to be modified.
3232
* `modify_type` - (Optional, String) Operation types, including:
3333
- IMMEDIATELY: Adjust immediately;
3434
- DELAY: Delay adjustment;

0 commit comments

Comments
 (0)