Skip to content

Commit 08883ec

Browse files
tongyimingmikatong
andauthored
feat: emr support query node info (#894)
* feat: emr support query node info * fix: resource_tc_emr_cluster unit test Co-authored-by: mikatong <[email protected]>
1 parent c6077b7 commit 08883ec

9 files changed

+784
-55
lines changed

tencentcloud/data_source_tc_emr.go

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,8 @@ Example Usage
77
88
```hcl
99
data "tencentcloud_emr" "my_emr" {
10-
filter {
11-
name = "address-status"
12-
values = ["UNBIND"]
13-
}
10+
display_strategy="clusterList"
11+
instance_ids=["emr-rnzqrleq"]
1412
}
1513
```
1614
*/
@@ -36,7 +34,7 @@ func dataSourceTencentCloudEmr() *schema.Resource {
3634
Required: true,
3735
Description: "Display strategy(e.g.:clusterList, monitorManage).",
3836
},
39-
"prefix_instance_ids": {
37+
"instance_ids": {
4038
Type: schema.TypeList,
4139
Optional: true,
4240
Elem: &schema.Schema{Type: schema.TypeString},
@@ -139,8 +137,8 @@ func dataSourceTencentCloudEmrRead(d *schema.ResourceData, meta interface{}) err
139137
if v, ok := d.GetOk("display_strategy"); ok {
140138
filters["display_strategy"] = v.(string)
141139
}
142-
if v, ok := d.GetOk("prefix_instance_ids"); ok {
143-
filters["prefix_instance_ids"] = v.(string)
140+
if v, ok := d.GetOk("instance_ids"); ok {
141+
filters["instance_ids"] = v.([]interface{})
144142
}
145143
if v, ok := d.GetOk("project_id"); ok {
146144
filters["project_id"] = v.(int64)

0 commit comments

Comments
 (0)