Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mikatong committed Jan 8, 2025
1 parent 47a2cca commit a46f1f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func ResourceTencentCloudMongodbInstanceParams() *schema.Resource {
},

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

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

instanceParams := d.Get("instance_params").([]interface{})
instanceParams := d.Get("instance_params").(*schema.Set).List()
paramNames := make([]string, 0)
for _, instanceParam := range instanceParams {
instanceParamMap := instanceParam.(map[string]interface{})
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/mongodb_instance_params.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ resource "tencentcloud_mongodb_instance_params" "mongodb_instance_params" {
The following arguments are supported:

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

0 comments on commit a46f1f9

Please sign in to comment.