import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Backups are important runtime files for the database. Based on backup files, the database can achieve disaster recovery and restoration. MySQL Cloud Database provides two backup capabilities: data backup and log backup. Data backup allows you to restore the database to a specific backup set, while log backup enables restoration to a specified point in time * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const rdsmysqlbackupDemo = new volcenginecc.rdsmysql.Backup("rdsmysqlbackupDemo", { * instanceId: "mysql-9e2c59****", * backupMethod: "Logical", * backupMetas: [{ * database: "test", * tables: [], * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:rdsmysql/backup:Backup example "instance_id|backup_id" * ``` */ export declare class Backup extends pulumi.CustomResource { /** * Get an existing Backup resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: BackupState, opts?: pulumi.CustomResourceOptions): Backup; /** * Returns true if the given object is an instance of Backup. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Backup; /** * Backup creation end time (UTC) */ readonly backupEndTime: pulumi.Output; /** * Backup file name */ readonly backupFileName: pulumi.Output; /** * Backup file size (bytes) */ readonly backupFileSize: pulumi.Output; /** * Backup ID */ readonly backupId: pulumi.Output; readonly backupMetas: pulumi.Output; /** * Backup type. Values: Physical (physical backup), Logical (logical backup), Snapshot (snapshot backup) */ readonly backupMethod: pulumi.Output; /** * Backup name */ readonly backupName: pulumi.Output; /** * Backup region */ readonly backupRegion: pulumi.Output; /** * Backup creation start time (UTC) */ readonly backupStartTime: pulumi.Output; /** * Backup status. Values: Success, Failed, Running */ readonly backupStatus: pulumi.Output; /** * Backup method. Values: Full (full/database table backup), Increment (incremental backup), DumpAll (full database backup) */ readonly backupType: pulumi.Output; /** * Consistency time point */ readonly consistentTime: pulumi.Output; /** * Backup creator. Values: System (system), User (user) */ readonly createType: pulumi.Output; /** * Compatible version. Values: MySQL*5*7: MySQL 5.7 version; MySQL*8*0: MySQL 8.0 version */ readonly dbEngineVersion: pulumi.Output; readonly dbTableInfos: pulumi.Output; /** * Download status */ readonly downloadStatus: pulumi.Output; /** * Database engine type. Values: InnoDB: InnoDB engine; RocksDB: RocksDB engine */ readonly engineType: pulumi.Output; /** * Error message for backup failure */ readonly errorMessage: pulumi.Output; /** * Backup expiration time (UTC) */ readonly expiredTime: pulumi.Output; /** * Instance ID */ readonly instanceId: pulumi.Output; /** * Whether encrypted */ readonly isEncrypted: pulumi.Output; /** * Whether expired */ readonly isExpired: pulumi.Output; /** * Create a Backup resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: BackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Backup resources. */ export interface BackupState { /** * Backup creation end time (UTC) */ backupEndTime?: pulumi.Input; /** * Backup file name */ backupFileName?: pulumi.Input; /** * Backup file size (bytes) */ backupFileSize?: pulumi.Input; /** * Backup ID */ backupId?: pulumi.Input; backupMetas?: pulumi.Input[]>; /** * Backup type. Values: Physical (physical backup), Logical (logical backup), Snapshot (snapshot backup) */ backupMethod?: pulumi.Input; /** * Backup name */ backupName?: pulumi.Input; /** * Backup region */ backupRegion?: pulumi.Input; /** * Backup creation start time (UTC) */ backupStartTime?: pulumi.Input; /** * Backup status. Values: Success, Failed, Running */ backupStatus?: pulumi.Input; /** * Backup method. Values: Full (full/database table backup), Increment (incremental backup), DumpAll (full database backup) */ backupType?: pulumi.Input; /** * Consistency time point */ consistentTime?: pulumi.Input; /** * Backup creator. Values: System (system), User (user) */ createType?: pulumi.Input; /** * Compatible version. Values: MySQL*5*7: MySQL 5.7 version; MySQL*8*0: MySQL 8.0 version */ dbEngineVersion?: pulumi.Input; dbTableInfos?: pulumi.Input[]>; /** * Download status */ downloadStatus?: pulumi.Input; /** * Database engine type. Values: InnoDB: InnoDB engine; RocksDB: RocksDB engine */ engineType?: pulumi.Input; /** * Error message for backup failure */ errorMessage?: pulumi.Input; /** * Backup expiration time (UTC) */ expiredTime?: pulumi.Input; /** * Instance ID */ instanceId?: pulumi.Input; /** * Whether encrypted */ isEncrypted?: pulumi.Input; /** * Whether expired */ isExpired?: pulumi.Input; } /** * The set of arguments for constructing a Backup resource. */ export interface BackupArgs { backupMetas?: pulumi.Input[]>; /** * Backup type. Values: Physical (physical backup), Logical (logical backup), Snapshot (snapshot backup) */ backupMethod?: pulumi.Input; /** * Backup method. Values: Full (full/database table backup), Increment (incremental backup), DumpAll (full database backup) */ backupType?: pulumi.Input; /** * Instance ID */ instanceId: pulumi.Input; }