You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description: "The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0, and default is 5.7. Upgrade the instance engine version to support 5.6/5.7 and switch immediately.",
228
228
},
229
+
"engine_type": {
230
+
Type: schema.TypeString,
231
+
Optional: true,
232
+
Computed: true,
233
+
Description: "Instance engine type. The default value is `InnoDB`. Supported values include `InnoDB` and `RocksDB`.",
234
+
},
229
235
"upgrade_subversion": {
230
236
Type: schema.TypeInt,
231
237
Optional: true,
@@ -488,6 +494,16 @@ func mysqlMasterInstanceRoleSet(ctx context.Context, requestInter interface{}, d
488
494
} else {
489
495
requestByUse.EngineVersion=&engineVersion
490
496
}
497
+
498
+
ifstringInterface, ok:=d.GetOk("engine_type"); ok {
499
+
engineType:=stringInterface.(string)
500
+
ifokByMonth {
501
+
requestByMonth.EngineType=&engineType
502
+
} else {
503
+
requestByUse.EngineType=&engineType
504
+
}
505
+
}
506
+
491
507
ifstringInterface, ok:=d.GetOk("availability_zone"); ok {
492
508
str:=stringInterface.(string)
493
509
ifokByMonth {
@@ -873,6 +889,9 @@ func resourceTencentCloudMysqlInstanceRead(d *schema.ResourceData, meta interfac
*`engine_type` - (Optional, String) Instance engine type. The default value is `InnoDB`. Supported values include `InnoDB` and `RocksDB`.
147
148
*`engine_version` - (Optional, String) The version number of the database engine to use. Supported versions include 5.5/5.6/5.7/8.0, and default is 5.7. Upgrade the instance engine version to support 5.6/5.7 and switch immediately.
148
149
*`fast_upgrade` - (Optional, Int) Specify whether to enable fast upgrade when upgrade instance spec, available value: `1` - enabled, `0` - disabled.
149
150
*`first_slave_zone` - (Optional, String) Zone information about first slave instance.
0 commit comments