Skip to content

Commit b9bb925

Browse files
committed
add
1 parent 882eb6c commit b9bb925

File tree

5 files changed

+502
-84
lines changed

5 files changed

+502
-84
lines changed

tencentcloud/services/cynosdb/extension_cynosdb.go

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
160160
Type: schema.TypeString,
161161
Required: true,
162162
ForceNew: true,
163-
Description: "Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`.",
163+
Description: "Version of CynosDB, which is related to `db_type`. For `MYSQL`, available value is `5.7`, `8.0`.",
164164
},
165165
"storage_limit": {
166166
Type: schema.TypeInt,
@@ -342,7 +342,7 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
342342
"param_items": {
343343
Type: schema.TypeList,
344344
Optional: true,
345-
Description: "Specify parameter list of database. It is valid when prarm_template_id is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details.",
345+
Description: "Specify parameter list of database. It is valid when `param_template_id` is set in create cluster. Use `data.tencentcloud_mysql_default_params` to query available parameter details.",
346346
Elem: &schema.Resource{
347347
Schema: map[string]*schema.Schema{
348348
"name": {
@@ -364,10 +364,19 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
364364
},
365365
},
366366
"prarm_template_id": {
367-
Type: schema.TypeInt,
368-
Optional: true,
369-
Computed: true,
370-
Description: "The ID of the parameter template.",
367+
Type: schema.TypeInt,
368+
Optional: true,
369+
Computed: true,
370+
ConflictsWith: []string{"param_template_id"},
371+
Deprecated: "It will be deprecated. Use `param_template_id` instead.",
372+
Description: "The ID of the parameter template.",
373+
},
374+
"param_template_id": {
375+
Type: schema.TypeInt,
376+
Optional: true,
377+
Computed: true,
378+
ConflictsWith: []string{"prarm_template_id"},
379+
Description: "The ID of the parameter template.",
371380
},
372381
"db_mode": {
373382
Type: schema.TypeString,
@@ -394,6 +403,11 @@ func TencentCynosdbClusterBaseInfo() map[string]*schema.Schema {
394403
Optional: true,
395404
Description: "Specify auto-pause delay in second while `db_mode` is `SERVERLESS`. Value range: `[600, 691200]`. Default: `600`.",
396405
},
406+
"slave_zone": {
407+
Type: schema.TypeString,
408+
Optional: true,
409+
Description: "Multi zone Addresses of the CynosDB Cluster.",
410+
},
397411
"serverless_status_flag": {
398412
Type: schema.TypeString,
399413
Optional: true,

0 commit comments

Comments
 (0)