Skip to content

Commit f689e1d

Browse files
committed
add
1 parent 991428d commit f689e1d

File tree

5 files changed

+26
-3
lines changed

5 files changed

+26
-3
lines changed

tencentcloud/services/dlc/resource_tc_dlc_data_engine.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,13 @@ func ResourceTencentCloudDlcDataEngine() *schema.Resource {
306306
Computed: true,
307307
Description: "Generation of the engine. SuperSQL means the supersql engine while Native means the standard engine. It is SuperSQL by default.",
308308
},
309+
310+
// computed
311+
"data_engine_id": {
312+
Type: schema.TypeString,
313+
Computed: true,
314+
Description: "Data engine ID.",
315+
},
309316
},
310317
}
311318
}
@@ -783,6 +790,10 @@ func resourceTencentCloudDlcDataEngineRead(d *schema.ResourceData, meta interfac
783790
_ = d.Set("engine_generation", dataEngine.EngineGeneration)
784791
}
785792

793+
if dataEngine.DataEngineId != nil {
794+
_ = d.Set("data_engine_id", dataEngine.DataEngineId)
795+
}
796+
786797
return nil
787798
}
788799

tencentcloud/services/dlc/resource_tc_dlc_data_engine.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ resource "tencentcloud_dlc_data_engine" "example" {
2828

2929
Import
3030

31-
DLC data engine can be imported using the id, e.g.
31+
DLC data engine can be imported using the dataEngineName#dataEngineId, e.g.
3232

3333
```
3434
terraform import tencentcloud_dlc_data_engine.example tf-example#DataEngine-d3gk8r5h

tencentcloud/services/dlc/resource_tc_dlc_work_group.go

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,13 @@ func ResourceTencentCloudDlcWorkGroup() *schema.Resource {
4343
Elem: &schema.Schema{Type: schema.TypeString},
4444
Description: "Collection of IDs of users to be bound to working groups.",
4545
},
46+
47+
// computed
48+
"work_group_id": {
49+
Computed: true,
50+
Type: schema.TypeInt,
51+
Description: "Working group ID.",
52+
},
4653
},
4754
}
4855
}
@@ -136,6 +143,10 @@ func resourceTencentCloudDlcWorkGroupRead(d *schema.ResourceData, meta interface
136143
_ = d.Set("user_ids", userIds)
137144
}
138145

146+
if workGroup.WorkGroupId != nil {
147+
_ = d.Set("work_group_id", workGroup.WorkGroupId)
148+
}
149+
139150
return nil
140151
}
141152

website/docs/r/dlc_data_engine.html.markdown

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,12 @@ The `session_resource_template` object supports the following:
103103
In addition to all arguments above, the following attributes are exported:
104104

105105
* `id` - ID of the resource.
106-
106+
* `data_engine_id` - Data engine ID.
107107

108108

109109
## Import
110110

111-
DLC data engine can be imported using the id, e.g.
111+
DLC data engine can be imported using the dataEngineName#dataEngineId, e.g.
112112

113113
```
114114
terraform import tencentcloud_dlc_data_engine.example tf-example#DataEngine-d3gk8r5h

website/docs/r/dlc_work_group.html.markdown

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ In addition to all arguments above, the following attributes are exported:
3333

3434
* `id` - ID of the resource.
3535
* `user_ids` - Collection of IDs of users to be bound to working groups.
36+
* `work_group_id` - Working group ID.
3637

3738

3839
## Import

0 commit comments

Comments
 (0)