From 0a18c86a797aad49e4fe8f57ec8ce4cc9f0edee4 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Tue, 10 Dec 2024 16:24:28 +0800 Subject: [PATCH 1/2] add --- .../ccn/resource_tc_ccn_route_table_input_policies.go | 4 ++-- website/docs/r/ccn_route_table_input_policies.html.markdown | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go b/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go index 4046111889..f6b21301fb 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go +++ b/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go @@ -62,13 +62,13 @@ func ResourceTencentCloudCcnRouteTableInputPolicies() *schema.Resource { "name": { Type: schema.TypeString, Required: true, - Description: "condition type.", + Description: "Condition type. Example value: `instance-type`.", }, "values": { Type: schema.TypeList, Required: true, Elem: &schema.Schema{Type: schema.TypeString}, - Description: "List of conditional values.", + Description: "List of conditional values. Example value: `VPC`, `DIRECTCONNECT`.", }, "match_pattern": { Type: schema.TypeInt, diff --git a/website/docs/r/ccn_route_table_input_policies.html.markdown b/website/docs/r/ccn_route_table_input_policies.html.markdown index d4f9821ac7..34903d7eee 100644 --- a/website/docs/r/ccn_route_table_input_policies.html.markdown +++ b/website/docs/r/ccn_route_table_input_policies.html.markdown @@ -100,8 +100,8 @@ The `policies` object supports the following: The `route_conditions` object of `policies` supports the following: * `match_pattern` - (Required, Int) Matching mode, `1` precise matching, `0` fuzzy matching. -* `name` - (Required, String) condition type. -* `values` - (Required, List) List of conditional values. +* `name` - (Required, String) Condition type. Example value: `instance-type`. +* `values` - (Required, List) List of conditional values. Example value: `VPC`, `DIRECTCONNECT`. ## Attributes Reference From a14a1c92809c8fe676fd89ef71f963bf50c74941 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Tue, 10 Dec 2024 19:58:50 +0800 Subject: [PATCH 2/2] add --- .../ccn/resource_tc_ccn_route_table_input_policies.go | 4 ++-- .../docs/r/ccn_route_table_input_policies.html.markdown | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go b/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go index f6b21301fb..134c9da68f 100644 --- a/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go +++ b/tencentcloud/services/ccn/resource_tc_ccn_route_table_input_policies.go @@ -62,13 +62,13 @@ func ResourceTencentCloudCcnRouteTableInputPolicies() *schema.Resource { "name": { Type: schema.TypeString, Required: true, - Description: "Condition type. Example value: `instance-type`.", + Description: "Condition type. Example value: `instance-type`, `instance-region`, `instance-id`, `cidr-block`.", }, "values": { Type: schema.TypeList, Required: true, Elem: &schema.Schema{Type: schema.TypeString}, - Description: "List of conditional values. Example value: `VPC`, `DIRECTCONNECT`.", + Description: "List of conditional values. Example value:\n `instance-type`: `VPC`, `VPNGW`, `DIRECTCONNECT`\n `instance-region`: `ap-guangzhou`\n `instance-id`: `vpc-axrsmmrv`, `dcg-oxad32f7`, `vpngw-33p5vnwd`\n `cidr-block`: `172.0.0.0/8`.", }, "match_pattern": { Type: schema.TypeInt, diff --git a/website/docs/r/ccn_route_table_input_policies.html.markdown b/website/docs/r/ccn_route_table_input_policies.html.markdown index 34903d7eee..3ef39f5d75 100644 --- a/website/docs/r/ccn_route_table_input_policies.html.markdown +++ b/website/docs/r/ccn_route_table_input_policies.html.markdown @@ -100,8 +100,12 @@ The `policies` object supports the following: The `route_conditions` object of `policies` supports the following: * `match_pattern` - (Required, Int) Matching mode, `1` precise matching, `0` fuzzy matching. -* `name` - (Required, String) Condition type. Example value: `instance-type`. -* `values` - (Required, List) List of conditional values. Example value: `VPC`, `DIRECTCONNECT`. +* `name` - (Required, String) Condition type. Example value: `instance-type`, `instance-region`, `instance-id`, `cidr-block`. +* `values` - (Required, List) List of conditional values. Example value: + `instance-type`: `VPC`, `VPNGW`, `DIRECTCONNECT` + `instance-region`: `ap-guangzhou` + `instance-id`: `vpc-axrsmmrv`, `dcg-oxad32f7`, `vpngw-33p5vnwd` + `cidr-block`: `172.0.0.0/8`. ## Attributes Reference