import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MysqlSwitchMasterSlaveOperationConfig extends cdktf.TerraformMetaArguments { /** * target instance. Possible values: `first` - first standby; `second` - second standby. The default value is `first`, and only multi-AZ instances support setting it to `second`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#dst_slave MysqlSwitchMasterSlaveOperation#dst_slave} */ readonly dstSlave?: string; /** * Whether to force switch. Default is False. Note that if you set the mandatory switch to True, there is a risk of data loss on the instance, so use it with caution. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#force_switch MysqlSwitchMasterSlaveOperation#force_switch} */ readonly forceSwitch?: boolean | cdktf.IResolvable; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#id MysqlSwitchMasterSlaveOperation#id} * * Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. * If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable. */ readonly id?: string; /** * instance id. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#instance_id MysqlSwitchMasterSlaveOperation#instance_id} */ readonly instanceId: string; /** * Whether to switch within the time window. The default is False, i.e. do not switch within the time window. Note that if the ForceSwitch parameter is set to True, this parameter will not take effect. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#wait_switch MysqlSwitchMasterSlaveOperation#wait_switch} */ readonly waitSwitch?: boolean | cdktf.IResolvable; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation tencentcloud_mysql_switch_master_slave_operation} */ export declare class MysqlSwitchMasterSlaveOperation extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mysql_switch_master_slave_operation"; /** * Generates CDKTF code for importing a MysqlSwitchMasterSlaveOperation resource upon running "cdktf plan " * @param scope The scope in which to define this construct * @param importToId The construct id used in the generated config for the MysqlSwitchMasterSlaveOperation to import * @param importFromId The id of the existing MysqlSwitchMasterSlaveOperation that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MysqlSwitchMasterSlaveOperation to import is found */ static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): any; /** * Create a new {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_switch_master_slave_operation tencentcloud_mysql_switch_master_slave_operation} Resource * * @param scope The scope in which to define this construct * @param id The scoped construct ID. Must be unique amongst siblings in the same scope * @param options MysqlSwitchMasterSlaveOperationConfig */ constructor(scope: Construct, id: string, config: MysqlSwitchMasterSlaveOperationConfig); private _dstSlave?; get dstSlave(): string; set dstSlave(value: string); resetDstSlave(): void; get dstSlaveInput(): string; private _forceSwitch?; get forceSwitch(): boolean | cdktf.IResolvable; set forceSwitch(value: boolean | cdktf.IResolvable); resetForceSwitch(): void; get forceSwitchInput(): any; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _instanceId?; get instanceId(): string; set instanceId(value: string); get instanceIdInput(): string; private _waitSwitch?; get waitSwitch(): boolean | cdktf.IResolvable; set waitSwitch(value: boolean | cdktf.IResolvable); resetWaitSwitch(): void; get waitSwitchInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }