Skip to content

Commit 06ba9e2

Browse files
authored
fix(teo): [144252760] update tlsconfig_version type (#3431)
* fix: update tlsconfig_version type * fix: modify doc
1 parent ff68b6f commit 06ba9e2

File tree

4 files changed

+13
-3
lines changed

4 files changed

+13
-3
lines changed

.changelog/3431.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_teo_l7_acc_rule_v2: Correct the `tls_config_parameters.0.version` field type.
3+
```
4+
5+
```release-note:enhancement
6+
resource/tencentcloud_teo_l7_acc_rule: Correct the `tls_config_parameters.0.version` field type.
7+
```

tencentcloud/services/teo/resource_tc_teo_l7_acc_rule_extension.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,12 @@ func TencentTeoL7RuleBranchBasicInfo(depth int) map[string]*schema.Schema {
803803
Elem: &schema.Resource{
804804
Schema: map[string]*schema.Schema{
805805
"version": {
806-
Type: schema.TypeString,
806+
Type: schema.TypeList,
807807
Optional: true,
808808
Description: "TLS version. at least one must be specified. if multiple versions are specified, they must be consecutive, e.g., enable tls1, 1.1, 1.2, and 1.3. it is not allowed to enable only 1 and 1.2 while disabling 1.1. valid values: tlsv1: tlsv1 version; `tlsv1.1`: tlsv1.1 version; `tlsv1.2`: tlsv1.2 version; `tlsv1.3`: tlsv1.3 version.",
809+
Elem: &schema.Schema{
810+
Type: schema.TypeString,
811+
},
809812
},
810813
"cipher_suite": {
811814
Type: schema.TypeString,

website/docs/r/teo_l7_acc_rule.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -690,7 +690,7 @@ The `sub_rules` object of `branches` supports the following:
690690
The `tls_config_parameters` object of `actions` supports the following:
691691

692692
* `cipher_suite` - (Optional, String) Cipher suite. for detailed information, please refer to tls versions and cipher suites description, https://www.tencentcloud.com/document/product/1145/54154?has_map=1. valid values: loose-v2023: loose-v2023 cipher suite; general-v2023: general-v2023 cipher suite; strict-v2023: strict-v2023 cipher suite.
693-
* `version` - (Optional, String) TLS version. at least one must be specified. if multiple versions are specified, they must be consecutive, e.g., enable tls1, 1.1, 1.2, and 1.3. it is not allowed to enable only 1 and 1.2 while disabling 1.1. valid values: tlsv1: tlsv1 version; `tlsv1.1`: tlsv1.1 version; `tlsv1.2`: tlsv1.2 version; `tlsv1.3`: tlsv1.3 version.
693+
* `version` - (Optional, List) TLS version. at least one must be specified. if multiple versions are specified, they must be consecutive, e.g., enable tls1, 1.1, 1.2, and 1.3. it is not allowed to enable only 1 and 1.2 while disabling 1.1. valid values: tlsv1: tlsv1 version; `tlsv1.1`: tlsv1.1 version; `tlsv1.2`: tlsv1.2 version; `tlsv1.3`: tlsv1.3 version.
694694

695695
The `upstream_follow_redirect_parameters` object of `actions` supports the following:
696696

website/docs/r/teo_l7_acc_rule_v2.html.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ The `sub_rules` object of `branches` supports the following:
422422
The `tls_config_parameters` object of `actions` supports the following:
423423

424424
* `cipher_suite` - (Optional, String) Cipher suite. for detailed information, please refer to tls versions and cipher suites description, https://www.tencentcloud.com/document/product/1145/54154?has_map=1. valid values: loose-v2023: loose-v2023 cipher suite; general-v2023: general-v2023 cipher suite; strict-v2023: strict-v2023 cipher suite.
425-
* `version` - (Optional, String) TLS version. at least one must be specified. if multiple versions are specified, they must be consecutive, e.g., enable tls1, 1.1, 1.2, and 1.3. it is not allowed to enable only 1 and 1.2 while disabling 1.1. valid values: tlsv1: tlsv1 version; `tlsv1.1`: tlsv1.1 version; `tlsv1.2`: tlsv1.2 version; `tlsv1.3`: tlsv1.3 version.
425+
* `version` - (Optional, List) TLS version. at least one must be specified. if multiple versions are specified, they must be consecutive, e.g., enable tls1, 1.1, 1.2, and 1.3. it is not allowed to enable only 1 and 1.2 while disabling 1.1. valid values: tlsv1: tlsv1 version; `tlsv1.1`: tlsv1.1 version; `tlsv1.2`: tlsv1.2 version; `tlsv1.3`: tlsv1.3 version.
426426

427427
The `upstream_follow_redirect_parameters` object of `actions` supports the following:
428428

0 commit comments

Comments
 (0)