@@ -60,24 +60,24 @@ func ResourceTencentCloudVpnSslServer() *schema.Resource {
6060 "ssl_vpn_port" : {
6161 Type : schema .TypeInt ,
6262 Optional : true ,
63- Description : "The port of ssl vpn. Default value: 1194." ,
63+ Description : "The port of ssl vpn. Currently only supports UDP. Default value: 1194." ,
6464 },
6565 "integrity_algorithm" : {
6666 Type : schema .TypeString ,
6767 Optional : true ,
68- Description : "The integrity algorithm. Valid values: SHA1, MD5 and NONE . Default value: NONE ." ,
68+ Description : "The integrity algorithm. Valid values: SHA1. Default value: SHA1 ." ,
6969 },
7070 "encrypt_algorithm" : {
7171 Type : schema .TypeString ,
7272 Optional : true ,
73- Description : "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC, NONE ." +
74- "Default value: NONE ." ,
73+ Description : "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC." +
74+ "Default value: AES-128-CBC ." ,
7575 },
7676 "compress" : {
7777 Type : schema .TypeBool ,
7878 Optional : true ,
7979 Default : svccvm .FALSE ,
80- Description : "need compressed. Default value: False." ,
80+ Description : "Need compressed. Currently is not supports compress . Default value: False." ,
8181 },
8282 },
8383 }
@@ -114,7 +114,7 @@ func resourceTencentCloudVpnSslServerCreate(d *schema.ResourceData, meta interfa
114114 if v , ok := d .GetOk ("ssl_vpn_protocol" ); ok {
115115 request .SslVpnProtocol = helper .String (v .(string ))
116116 }
117- if v , ok := d .GetOk ("ssl_vpn_port" ); ok {
117+ if v , ok := d .GetOkExists ("ssl_vpn_port" ); ok {
118118 request .SslVpnPort = helper .IntInt64 (v .(int ))
119119 }
120120 if v , ok := d .GetOk ("integrity_algorithm" ); ok {
@@ -123,7 +123,7 @@ func resourceTencentCloudVpnSslServerCreate(d *schema.ResourceData, meta interfa
123123 if v , ok := d .GetOk ("encrypt_algorithm" ); ok {
124124 request .EncryptAlgorithm = helper .String (v .(string ))
125125 }
126- if v , ok := d .GetOk ("compress" ); ok {
126+ if v , ok := d .GetOkExists ("compress" ); ok {
127127 request .Compress = helper .Bool (v .(bool ))
128128 }
129129
@@ -244,7 +244,7 @@ func resourceTencentCloudVpnSslServerUpdate(d *schema.ResourceData, meta interfa
244244 if v , ok := d .GetOk ("ssl_vpn_protocol" ); ok {
245245 request .SslVpnProtocol = helper .String (v .(string ))
246246 }
247- if v , ok := d .GetOk ("ssl_vpn_port" ); ok {
247+ if v , ok := d .GetOkExists ("ssl_vpn_port" ); ok {
248248 request .SslVpnPort = helper .IntInt64 (v .(int ))
249249 }
250250 if v , ok := d .GetOk ("integrity_algorithm" ); ok {
0 commit comments