From c0e8595ccda1af08ac904b4ebe7ce7662f5dac30 Mon Sep 17 00:00:00 2001 From: hellertang Date: Thu, 30 Dec 2021 09:37:58 +0800 Subject: [PATCH] fix clb_listener import error --- tencentcloud/resource_tc_clb_listener.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tencentcloud/resource_tc_clb_listener.go b/tencentcloud/resource_tc_clb_listener.go index 7a776f84aa..40ab645f9e 100644 --- a/tencentcloud/resource_tc_clb_listener.go +++ b/tencentcloud/resource_tc_clb_listener.go @@ -351,6 +351,7 @@ func resourceTencentCloudClbListener() *schema.Resource { "target_type": { Type: schema.TypeString, Optional: true, + Computed: true, ValidateFunc: validateAllowedStringValue([]string{CLB_TARGET_TYPE_NODE, CLB_TARGET_TYPE_TARGETGROUP}), Description: "Backend target type. Valid values: `NODE`, `TARGETGROUP`. `NODE` means to bind ordinary nodes, `TARGETGROUP` means to bind target group. NOTES: TCP/UDP/TCP_SSL listener must configuration, HTTP/HTTPS listener needs to be configured in tencentcloud_clb_listener_rule.", },