import { Construct } from 'constructs'; import * as cdktf from 'cdktf'; export interface MysqlBackupPolicyConfig extends cdktf.TerraformMetaArguments { /** * Backup method. Supported values include: `physical` - physical backup; `snapshot` - snapshot backup. Multi node only support `physical`, Single node only support `snapshot`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#backup_model MysqlBackupPolicy#backup_model} */ readonly backupModel?: string; /** * Instance backup time, in the format of 'HH:mm-HH:mm'. Time setting interval is four hours. Default to `02:00-06:00`. The following value can be supported: `02:00-06:00`, `06:00-10:00`, `10:00-14:00`, `14:00-18:00`, `18:00-22:00`, and `22:00-02:00`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#backup_time MysqlBackupPolicy#backup_time} */ readonly backupTime?: string; /** * Binlog retention time, in days. The minimum value is 7 days and the maximum value is 1830 days. This value cannot be set greater than the backup file retention time. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#binlog_period MysqlBackupPolicy#binlog_period} */ readonly binlogPeriod?: number; /** * The standard starting number of days for log backup storage. The log backup will be converted when it reaches the standard starting number of days for storage. The minimum is 30 days and must not be greater than the number of days for log backup retention. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#binlog_standby_days MysqlBackupPolicy#binlog_standby_days} */ readonly binlogStandbyDays?: number; /** * Whether to enable the log backup standard storage policy, `off` - close, `on` - open, the default is off. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#enable_binlog_standby MysqlBackupPolicy#enable_binlog_standby} */ readonly enableBinlogStandby?: string; /** * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#id MysqlBackupPolicy#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 to which policies will be applied. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#mysql_id MysqlBackupPolicy#mysql_id} */ readonly mysqlId: string; /** * The retention time of backup files, in days. The minimum value is 7 days and the maximum value is 1830 days. And default value is `7`. * * Docs at Terraform Registry: {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#retention_period MysqlBackupPolicy#retention_period} */ readonly retentionPeriod?: number; } /** * Represents a {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy tencentcloud_mysql_backup_policy} */ export declare class MysqlBackupPolicy extends cdktf.TerraformResource { static readonly tfResourceType = "tencentcloud_mysql_backup_policy"; /** * Generates CDKTF code for importing a MysqlBackupPolicy 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 MysqlBackupPolicy to import * @param importFromId The id of the existing MysqlBackupPolicy that should be imported. Refer to the {@link https://registry.terraform.io/providers/tencentcloudstack/tencentcloud/1.82.49/docs/resources/mysql_backup_policy#import import section} in the documentation of this resource for the id to use * @param provider? Optional instance of the provider where the MysqlBackupPolicy 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_backup_policy tencentcloud_mysql_backup_policy} 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 MysqlBackupPolicyConfig */ constructor(scope: Construct, id: string, config: MysqlBackupPolicyConfig); private _backupModel?; get backupModel(): string; set backupModel(value: string); resetBackupModel(): void; get backupModelInput(): string; private _backupTime?; get backupTime(): string; set backupTime(value: string); resetBackupTime(): void; get backupTimeInput(): string; private _binlogPeriod?; get binlogPeriod(): number; set binlogPeriod(value: number); resetBinlogPeriod(): void; get binlogPeriodInput(): number; private _binlogStandbyDays?; get binlogStandbyDays(): number; set binlogStandbyDays(value: number); resetBinlogStandbyDays(): void; get binlogStandbyDaysInput(): number; private _enableBinlogStandby?; get enableBinlogStandby(): string; set enableBinlogStandby(value: string); resetEnableBinlogStandby(): void; get enableBinlogStandbyInput(): string; private _id?; get id(): string; set id(value: string); resetId(): void; get idInput(): string; private _mysqlId?; get mysqlId(): string; set mysqlId(value: string); get mysqlIdInput(): string; private _retentionPeriod?; get retentionPeriod(): number; set retentionPeriod(value: number); resetRetentionPeriod(): void; get retentionPeriodInput(): number; protected synthesizeAttributes(): { [name: string]: any; }; protected synthesizeHclAttributes(): { [name: string]: any; }; }