Skip to content

Commit 55eaf48

Browse files
authored
feat(vpn): [129232016] add computed attr (#3653)
* add computed attr * add computed attr
1 parent ad9524a commit 55eaf48

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

.changelog/3648.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_vpn_ssl_server: mark `ssl_vpn_protocol`, `integrity_algorithm`, `encrypt_algorithm`, `compress` as computed
3+
```

tencentcloud/services/vpn/resource_tc_vpn_ssl_server.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,25 @@ func ResourceTencentCloudVpnSslServer() *schema.Resource {
5555
"ssl_vpn_protocol": {
5656
Type: schema.TypeString,
5757
Optional: true,
58+
Computed: true,
5859
Description: "The protocol of ssl vpn. Default value: UDP.",
5960
},
6061
"ssl_vpn_port": {
6162
Type: schema.TypeInt,
6263
Optional: true,
64+
Computed: true,
6365
Description: "The port of ssl vpn. Currently only supports UDP. Default value: 1194.",
6466
},
6567
"integrity_algorithm": {
6668
Type: schema.TypeString,
6769
Optional: true,
70+
Computed: true,
6871
Description: "The integrity algorithm. Valid values: SHA1. Default value: SHA1.",
6972
},
7073
"encrypt_algorithm": {
7174
Type: schema.TypeString,
7275
Optional: true,
76+
Computed: true,
7377
Description: "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC." +
7478
"Default value: AES-128-CBC.",
7579
},

tencentcloud/services/vpn/resource_tc_vpn_ssl_server.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Example Usage
55
```hcl
66
resource "tencentcloud_vpn_ssl_server" "example" {
77
local_address = [
8-
"10.0.0.0/17",
8+
"10.0.200.0/24",
99
]
10-
remote_address = "11.0.0.0/16"
10+
remote_address = "192.168.100.0/24"
1111
ssl_vpn_server_name = "helloworld"
12-
vpn_gateway_id = "vpngw-335lwf7d"
13-
ssl_vpn_protocol = "UDP"
14-
ssl_vpn_port = 1194
15-
integrity_algorithm = "MD5"
16-
encrypt_algorithm = "AES-128-CBC"
17-
compress = true
12+
vpn_gateway_id = "vpngw-6lq9ayur"
13+
# ssl_vpn_protocol = "UDP"
14+
# ssl_vpn_port = 9798
15+
# integrity_algorithm = "SHA1"
16+
# encrypt_algorithm = "AES-128-CBC"
17+
# compress = true
1818
}
1919
```
2020

website/docs/r/vpn_ssl_server.html.markdown

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,16 @@ Provide a resource to create a VPN SSL Server.
1616
```hcl
1717
resource "tencentcloud_vpn_ssl_server" "example" {
1818
local_address = [
19-
"10.0.0.0/17",
19+
"10.0.200.0/24",
2020
]
21-
remote_address = "11.0.0.0/16"
21+
remote_address = "192.168.100.0/24"
2222
ssl_vpn_server_name = "helloworld"
23-
vpn_gateway_id = "vpngw-335lwf7d"
24-
ssl_vpn_protocol = "UDP"
25-
ssl_vpn_port = 1194
26-
integrity_algorithm = "MD5"
27-
encrypt_algorithm = "AES-128-CBC"
28-
compress = true
23+
vpn_gateway_id = "vpngw-6lq9ayur"
24+
# ssl_vpn_protocol = "UDP"
25+
# ssl_vpn_port = 9798
26+
# integrity_algorithm = "SHA1"
27+
# encrypt_algorithm = "AES-128-CBC"
28+
# compress = true
2929
}
3030
```
3131

0 commit comments

Comments
 (0)