import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MysqlRollbackConfig extends cdktf.TerraformMetaArguments { /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#id MysqlRollback#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; /** * Cloud database instance ID. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#instance_id MysqlRollback#instance_id} */ readonly instanceId: string; /** * Database rollback time, the time format is: yyyy-mm-dd hh:mm:ss. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#rollback_time MysqlRollback#rollback_time} */ readonly rollbackTime: string; /** * Rollback strategy. Available values are: table, db, full; the default value is full. table- Extremely fast rollback mode, only import the backup and binlog of the selected table level, if there is a cross-table operation, and the associated table is not selected at the same time, the rollback will fail. In this mode, the parameter Databases must be empty; db- Quick mode, only import the backup and binlog of the selected library level, if there is a cross-database operation, and the associated library is not selected at the same time, the rollback will fail; full- normal rollback mode, the backup and binlog of the entire instance will be imported, at a slower rate. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#strategy MysqlRollback#strategy} */ readonly strategy: string; /** * databases block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#databases MysqlRollback#databases} */ readonly databases?: MysqlRollbackDatabases[] | cdktf.IResolvable; /** * tables block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#tables MysqlRollback#tables} */ readonly tables?: MysqlRollbackTables[] | cdktf.IResolvable; } export interface MysqlRollbackDatabases { /** * The original database name before rollback. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#database_name MysqlRollback#database_name} */ readonly databaseName: string; /** * The new database name after rollback. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#new_database_name MysqlRollback#new_database_name} */ readonly newDatabaseName: string; } export declare function mysqlRollbackDatabasesToTerraform(struct?: MysqlRollbackDatabases | cdktf.IResolvable): any; export declare function mysqlRollbackDatabasesToHclTerraform(struct?: MysqlRollbackDatabases | cdktf.IResolvable): any; export declare class MysqlRollbackDatabasesOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): MysqlRollbackDatabases | cdktf.IResolvable | undefined; set internalValue(value: MysqlRollbackDatabases | cdktf.IResolvable | undefined); private _databaseName?; get databaseName(): string; set databaseName(value: string); get databaseNameInput(): string; private _newDatabaseName?; get newDatabaseName(): string; set newDatabaseName(value: string); get newDatabaseNameInput(): string; } export declare class MysqlRollbackDatabasesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MysqlRollbackDatabases[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): MysqlRollbackDatabasesOutputReference; } export interface MysqlRollbackTablesTable { /** * New database table name after rollback. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#new_table_name MysqlRollback#new_table_name} */ readonly newTableName: string; /** * The original database table name before rollback. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#table_name MysqlRollback#table_name} */ readonly tableName: string; } export declare function mysqlRollbackTablesTableToTerraform(struct?: MysqlRollbackTablesTable | cdktf.IResolvable): any; export declare function mysqlRollbackTablesTableToHclTerraform(struct?: MysqlRollbackTablesTable | cdktf.IResolvable): any; export declare class MysqlRollbackTablesTableOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): MysqlRollbackTablesTable | cdktf.IResolvable | undefined; set internalValue(value: MysqlRollbackTablesTable | cdktf.IResolvable | undefined); private _newTableName?; get newTableName(): string; set newTableName(value: string); get newTableNameInput(): string; private _tableName?; get tableName(): string; set tableName(value: string); get tableNameInput(): string; } export declare class MysqlRollbackTablesTableList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MysqlRollbackTablesTable[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): MysqlRollbackTablesTableOutputReference; } export interface MysqlRollbackTables { /** * Database name. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#database MysqlRollback#database} */ readonly database: string; /** * table block * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#table MysqlRollback#table} */ readonly table: MysqlRollbackTablesTable[] | cdktf.IResolvable; } export declare function mysqlRollbackTablesToTerraform(struct?: MysqlRollbackTables | cdktf.IResolvable): any; export declare function mysqlRollbackTablesToHclTerraform(struct?: MysqlRollbackTables | cdktf.IResolvable): any; export declare class MysqlRollbackTablesOutputReference extends cdktf.ComplexObject { private isEmptyObject; private resolvableValue?; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param complexObjectIndex the index of this item in the list * @param complexObjectIsFromSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, complexObjectIndex: number, complexObjectIsFromSet: boolean); get internalValue(): MysqlRollbackTables | cdktf.IResolvable | undefined; set internalValue(value: MysqlRollbackTables | cdktf.IResolvable | undefined); private _database?; get database(): string; set database(value: string); get databaseInput(): string; private _table; get table(): MysqlRollbackTablesTableList; putTable(value: MysqlRollbackTablesTable[] | cdktf.IResolvable): void; get tableInput(): any; } export declare class MysqlRollbackTablesList extends cdktf.ComplexList { protected terraformResource: cdktf.IInterpolatingParent; protected terraformAttribute: string; protected wrapsSet: boolean; internalValue?: MysqlRollbackTables[] | cdktf.IResolvable; /** * @param terraformResource The parent resource * @param terraformAttribute The attribute on the parent resource this class is referencing * @param wrapsSet whether the list is wrapping a set (will add tolist() to be able to access an item via an index) */ constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string, wrapsSet: boolean); /** * @param index the index of the item to return */ get(index: number): MysqlRollbackTablesOutputReference; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback tencentcloud_mysql_rollback} */ export declare class MysqlRollback extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mysql_rollback"; /** * Generates CDKTF code for importing a MysqlRollback 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 MysqlRollback to import * @param importFromId The id of the existing MysqlRollback that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_rollback#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MysqlRollback 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_rollback tencentcloud_mysql_rollback} 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 MysqlRollbackConfig */ constructor(scope: Construct, id: string, config: MysqlRollbackConfig); 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 _rollbackTime?; get rollbackTime(): string; set rollbackTime(value: string); get rollbackTimeInput(): string; private _strategy?; get strategy(): string; set strategy(value: string); get strategyInput(): string; private _databases; get databases(): MysqlRollbackDatabasesList; putDatabases(value: MysqlRollbackDatabases[] | cdktf.IResolvable): void; resetDatabases(): void; get databasesInput(): any; private _tables; get tables(): MysqlRollbackTablesList; putTables(value: MysqlRollbackTables[] | cdktf.IResolvable): void; resetTables(): void; get tablesInput(): any; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }