import * as pulumi from "@pulumi/pulumi"; /** * > **NOTE** Prefer using the new `ovh.CloudStorageBlockVolumeBackup` resource instead. * * Manage backups for the given volume in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const backup = new ovh.cloudproject.VolumeBackup("backup", { * serviceName: "", * regionName: "GRA9", * volumeId: "", * name: "ExampleBackup", * }); * ``` * * ## Import * * A volume backup in a public cloud project can be imported using the `service_name`, `region_name` and `id` attributes. Using the following configuration: * * terraform * * import { * * id = "//" * * to = ovh_cloud_project_volume_backup.backup * * } * * You can then run: * * bash * * $ pulumi preview -generate-config-out=backup.tf * * $ pulumi up * * The file `backup.tf` will then contain the imported resource's configuration, that can be copied next to the `import` block above. See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details. */ export declare class VolumeBackup extends pulumi.CustomResource { /** * Get an existing VolumeBackup 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?: VolumeBackupState, opts?: pulumi.CustomResourceOptions): VolumeBackup; /** * Returns true if the given object is an instance of VolumeBackup. 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 VolumeBackup; /** * Creation date of the backup */ readonly creationDate: pulumi.Output; /** * name of the backup */ readonly name: pulumi.Output; /** * Volume backup region */ readonly region: pulumi.Output; /** * Region name */ readonly regionName: pulumi.Output; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ readonly serviceName: pulumi.Output; /** * Size of the backup in GiB */ readonly size: pulumi.Output; /** * Staus of the backup */ readonly status: pulumi.Output; /** * ID of the volume to backup */ readonly volumeId: pulumi.Output; /** * Create a VolumeBackup 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: VolumeBackupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VolumeBackup resources. */ export interface VolumeBackupState { /** * Creation date of the backup */ creationDate?: pulumi.Input; /** * name of the backup */ name?: pulumi.Input; /** * Volume backup region */ region?: pulumi.Input; /** * Region name */ regionName?: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * Size of the backup in GiB */ size?: pulumi.Input; /** * Staus of the backup */ status?: pulumi.Input; /** * ID of the volume to backup */ volumeId?: pulumi.Input; } /** * The set of arguments for constructing a VolumeBackup resource. */ export interface VolumeBackupArgs { /** * name of the backup */ name?: pulumi.Input; /** * Region name */ regionName: pulumi.Input; /** * Service name. If omitted, the `OVH_CLOUD_PROJECT_SERVICE` environment variable is used. */ serviceName?: pulumi.Input; /** * ID of the volume to backup */ volumeId: pulumi.Input; }