import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * RDS PostgreSQL backup resources support both physical and logical backups. Physical backups can be created and queried; logical backups can be created, deleted, downloaded, and queried. * * ## Import * * ```sh * $ pulumi import volcenginecc:rdspostgresql/backup:Backup example "backup_id|instance_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 data size (bytes). */ readonly backupDataSize: pulumi.Output; /** * Backup description. */ readonly backupDescription: pulumi.Output; /** * Backup end time. */ 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 method: Physical for physical backup, Logical for logical backup. */ readonly backupMethod: pulumi.Output; /** * Backup policy configuration information. */ readonly backupPolicy: pulumi.Output; /** * Backup progress percentage. */ readonly backupProgress: pulumi.Output; /** * Backup scope: Instance for instance-level backup, Database for database-level backup. */ readonly backupScope: pulumi.Output; /** * Backup start time. */ readonly backupStartTime: pulumi.Output; /** * Backup status, such as Success, Running, Failed. */ readonly backupStatus: pulumi.Output; /** * Backup type: Full for full backup, Increment for incremental backup. */ readonly backupType: pulumi.Output; /** * Creation method: Manual for manual creation, Automated for automatic creation. */ readonly createType: pulumi.Output; /** * Download logical backup file after creation. Only valid for logical backups. */ readonly downloadBackup: pulumi.Output; /** * Download preparation progress percentage. */ readonly downloadProgress: pulumi.Output; /** * Download status. */ readonly downloadStatus: pulumi.Output; /** * RDS PostgreSQL instance ID. */ readonly instanceId: 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 data size (bytes). */ backupDataSize?: pulumi.Input; /** * Backup description. */ backupDescription?: pulumi.Input; /** * Backup end time. */ 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 method: Physical for physical backup, Logical for logical backup. */ backupMethod?: pulumi.Input; /** * Backup policy configuration information. */ backupPolicy?: pulumi.Input; /** * Backup progress percentage. */ backupProgress?: pulumi.Input; /** * Backup scope: Instance for instance-level backup, Database for database-level backup. */ backupScope?: pulumi.Input; /** * Backup start time. */ backupStartTime?: pulumi.Input; /** * Backup status, such as Success, Running, Failed. */ backupStatus?: pulumi.Input; /** * Backup type: Full for full backup, Increment for incremental backup. */ backupType?: pulumi.Input; /** * Creation method: Manual for manual creation, Automated for automatic creation. */ createType?: pulumi.Input; /** * Download logical backup file after creation. Only valid for logical backups. */ downloadBackup?: pulumi.Input; /** * Download preparation progress percentage. */ downloadProgress?: pulumi.Input; /** * Download status. */ downloadStatus?: pulumi.Input; /** * RDS PostgreSQL instance ID. */ instanceId?: pulumi.Input; } /** * The set of arguments for constructing a Backup resource. */ export interface BackupArgs { /** * Backup description. */ backupDescription?: pulumi.Input; backupMetas?: pulumi.Input[]>; /** * Backup method: Physical for physical backup, Logical for logical backup. */ backupMethod?: pulumi.Input; /** * Backup policy configuration information. */ backupPolicy?: pulumi.Input; /** * Backup scope: Instance for instance-level backup, Database for database-level backup. */ backupScope?: pulumi.Input; /** * Backup type: Full for full backup, Increment for incremental backup. */ backupType?: pulumi.Input; /** * Download logical backup file after creation. Only valid for logical backups. */ downloadBackup?: pulumi.Input; /** * RDS PostgreSQL instance ID. */ instanceId: pulumi.Input; }