import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a block storage volume snapshot in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const snapshot = new ovh.CloudStorageBlockVolumeSnapshot("snapshot", { * serviceName: "xxxxxxxxx", * name: "my-snapshot", * description: "Snapshot before upgrade", * region: "GRA9", * volumeId: volume.id, * }); * ``` * * ## Import * * A block storage volume snapshot can be imported using the `service_name` and `id` separated by a `/`: * * bash * * ```sh * $ pulumi import ovh:index/cloudStorageBlockVolumeSnapshot:CloudStorageBlockVolumeSnapshot snapshot service_name/snapshot_id * ``` */ export declare class CloudStorageBlockVolumeSnapshot extends pulumi.CustomResource { /** * Get an existing CloudStorageBlockVolumeSnapshot 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?: CloudStorageBlockVolumeSnapshotState, opts?: pulumi.CustomResourceOptions): CloudStorageBlockVolumeSnapshot; /** * Returns true if the given object is an instance of CloudStorageBlockVolumeSnapshot. 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 CloudStorageBlockVolumeSnapshot; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * Creation date of the snapshot. */ readonly createdAt: pulumi.Output; /** * Current state of the snapshot: */ readonly currentState: pulumi.Output; /** * A description for the snapshot. */ readonly description: pulumi.Output; /** * The name of the snapshot. */ readonly name: pulumi.Output; /** * The region where the snapshot will be created. Changing this value recreates the resource. */ readonly region: pulumi.Output; /** * Snapshot readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * The id of the public cloud project. Changing this value recreates the resource. */ readonly serviceName: pulumi.Output; /** * Last update date of the snapshot. */ readonly updatedAt: pulumi.Output; /** * The ID of the volume to snapshot. Changing this value recreates the resource. */ readonly volumeId: pulumi.Output; /** * Create a CloudStorageBlockVolumeSnapshot 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: CloudStorageBlockVolumeSnapshotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStorageBlockVolumeSnapshot resources. */ export interface CloudStorageBlockVolumeSnapshotState { /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Creation date of the snapshot. */ createdAt?: pulumi.Input; /** * Current state of the snapshot: */ currentState?: pulumi.Input; /** * A description for the snapshot. */ description?: pulumi.Input; /** * The name of the snapshot. */ name?: pulumi.Input; /** * The region where the snapshot will be created. Changing this value recreates the resource. */ region?: pulumi.Input; /** * Snapshot readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * The id of the public cloud project. Changing this value recreates the resource. */ serviceName?: pulumi.Input; /** * Last update date of the snapshot. */ updatedAt?: pulumi.Input; /** * The ID of the volume to snapshot. Changing this value recreates the resource. */ volumeId?: pulumi.Input; } /** * The set of arguments for constructing a CloudStorageBlockVolumeSnapshot resource. */ export interface CloudStorageBlockVolumeSnapshotArgs { /** * A description for the snapshot. */ description?: pulumi.Input; /** * The name of the snapshot. */ name?: pulumi.Input; /** * The region where the snapshot will be created. Changing this value recreates the resource. */ region: pulumi.Input; /** * The id of the public cloud project. Changing this value recreates the resource. */ serviceName?: pulumi.Input; /** * The ID of the volume to snapshot. Changing this value recreates the resource. */ volumeId: pulumi.Input; }