Skip to content

Commit 4fdf137

Browse files
gitmknanonymous
andauthored
fix: modify tag (#1501)
* fix: modiy tag * fix: modify protocol description * fix: modify protocol description Co-authored-by: anonymous <anonymous@mail.org>
1 parent 7f3e3c0 commit 4fdf137

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tencentcloud/resource_tc_tem_application_service.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ func resourceTencentCloudTemApplicationService() *schema.Resource {
9999
"protocol": {
100100
Type: schema.TypeString,
101101
Optional: true,
102-
Description: "udp or tcp.",
102+
Description: "UDP or TCP.",
103103
},
104104
},
105105
},

tencentcloud/resource_tc_tem_environment.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ func resourceTencentCloudTemEnvironmentCreate(d *schema.ResourceData, meta inter
165165
if tags := helper.GetTags(d, "tags"); len(tags) > 0 {
166166
tagService := TagService{client: meta.(*TencentCloudClient).apiV3Conn}
167167
region := meta.(*TencentCloudClient).apiV3Conn.Region
168-
resourceName := fmt.Sprintf("qcs::tem:%s:uin/:tem-environment/%s", region, environmentId)
168+
resourceName := fmt.Sprintf("qcs::tem:%s:uin/:environment/%s", region, environmentId)
169169
if err := tagService.ModifyTags(ctx, resourceName, tags, nil); err != nil {
170170
return err
171171
}
@@ -215,7 +215,7 @@ func resourceTencentCloudTemEnvironmentRead(d *schema.ResourceData, meta interfa
215215
client := meta.(*TencentCloudClient).apiV3Conn
216216
tagService := TagService{client: client}
217217
region := client.Region
218-
tags, err := tagService.DescribeResourceTags(ctx, "tem", "tem-environment", region, environmentId)
218+
tags, err := tagService.DescribeResourceTags(ctx, "tem", "environment", region, environmentId)
219219
if err != nil {
220220
return err
221221
}

website/docs/r/tem_application_service.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The following arguments are supported:
4040
The `port_mapping_item_list` object supports the following:
4141

4242
* `port` - (Optional, Int) container port.
43-
* `protocol` - (Optional, String) udp or tcp.
43+
* `protocol` - (Optional, String) UDP or TCP.
4444
* `target_port` - (Optional, Int) application listen port.
4545

4646
The `service` object supports the following:

0 commit comments

Comments
 (0)