From fd63cad8f43a418eb535576d490b70520d9f46af Mon Sep 17 00:00:00 2001 From: hellertang Date: Fri, 28 Mar 2025 15:17:09 +0800 Subject: [PATCH] update vpc endpoint --- .../pls/resource_tc_vpc_enable_end_point_connect.go | 3 ++- .../services/vpc/resource_tc_security_group_rule_set.go | 4 ++-- website/docs/r/security_group_rule_set.html.markdown | 8 ++++---- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/tencentcloud/services/pls/resource_tc_vpc_enable_end_point_connect.go b/tencentcloud/services/pls/resource_tc_vpc_enable_end_point_connect.go index 66341e25d2..449f60ec02 100644 --- a/tencentcloud/services/pls/resource_tc_vpc_enable_end_point_connect.go +++ b/tencentcloud/services/pls/resource_tc_vpc_enable_end_point_connect.go @@ -65,7 +65,8 @@ func resourceTencentCloudVpcEnableEndPointConnectCreate(d *schema.ResourceData, endPointIdSet := v.(*schema.Set).List() for i := range endPointIdSet { endPointId = endPointIdSet[i].(string) - request.EndPointId = append(request.EndPointId, &endPointId) + endpoint := endPointIdSet[i].(string) + request.EndPointId = append(request.EndPointId, &endpoint) } } diff --git a/tencentcloud/services/vpc/resource_tc_security_group_rule_set.go b/tencentcloud/services/vpc/resource_tc_security_group_rule_set.go index 6d4b7b3349..d31faf943a 100644 --- a/tencentcloud/services/vpc/resource_tc_security_group_rule_set.go +++ b/tencentcloud/services/vpc/resource_tc_security_group_rule_set.go @@ -57,12 +57,12 @@ func ResourceTencentCloudSecurityGroupRuleSet() *schema.Resource { "service_template_id": { Type: schema.TypeString, Optional: true, - Description: "Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `cidr_block` and `port`.", + Description: "Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `protocol` and `port`.", }, "service_template_group": { Type: schema.TypeString, Optional: true, - Description: "Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `cidr_block` and `port`.", + Description: "Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `protocol` and `port`.", }, "protocol": { Type: schema.TypeString, diff --git a/website/docs/r/security_group_rule_set.html.markdown b/website/docs/r/security_group_rule_set.html.markdown index a3d5397476..16c46aa60d 100644 --- a/website/docs/r/security_group_rule_set.html.markdown +++ b/website/docs/r/security_group_rule_set.html.markdown @@ -118,8 +118,8 @@ The `egress` object supports the following: * `ipv6_cidr_block` - (Optional, String) An IPV6 address network or CIDR segment, and conflict with `source_security_id` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * `port` - (Optional, String) Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to all ports, and conflicts with `service_template_*`. * `protocol` - (Optional, String) Type of IP protocol. Valid values: `TCP`, `UDP`, `ICMP`, `ICMPv6` and `ALL`. Default to all types protocol, and conflicts with `service_template_*`. -* `service_template_group` - (Optional, String) Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `cidr_block` and `port`. -* `service_template_id` - (Optional, String) Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `cidr_block` and `port`. +* `service_template_group` - (Optional, String) Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `protocol` and `port`. +* `service_template_id` - (Optional, String) Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `protocol` and `port`. * `source_security_id` - (Optional, String) ID of the nested security group, and conflicts with `cidr_block` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. The `ingress` object supports the following: @@ -132,8 +132,8 @@ The `ingress` object supports the following: * `ipv6_cidr_block` - (Optional, String) An IPV6 address network or CIDR segment, and conflict with `source_security_id` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. * `port` - (Optional, String) Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to all ports, and conflicts with `service_template_*`. * `protocol` - (Optional, String) Type of IP protocol. Valid values: `TCP`, `UDP`, `ICMP`, `ICMPv6` and `ALL`. Default to all types protocol, and conflicts with `service_template_*`. -* `service_template_group` - (Optional, String) Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `cidr_block` and `port`. -* `service_template_id` - (Optional, String) Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `cidr_block` and `port`. +* `service_template_group` - (Optional, String) Specify Group ID of Protocol template ID like `ppmg-xxxxxxxx`, conflict with `protocol` and `port`. +* `service_template_id` - (Optional, String) Specify Protocol template ID like `ppm-xxxxxxxx`, conflict with `protocol` and `port`. * `source_security_id` - (Optional, String) ID of the nested security group, and conflicts with `cidr_block` and `address_template_*`. NOTE: One of `cidr_block`, `ipv6_cidr_block`, `source_security_id` and `address_template_*` must be set. ## Attributes Reference