import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a snapshot of a file storage share (NFS) in a public cloud project. The region is inherited from the parent share. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const share = new ovh.CloudStorageFileShare("share", { * serviceName: "", * name: "my-share", * size: 150, * region: "GRA1", * protocol: "NFS", * shareType: "STANDARD_1AZ", * }); * const snapshot = new ovh.CloudStorageFileShareSnapshot("snapshot", { * serviceName: share.serviceName, * shareId: share.id, * name: "my-snapshot", * description: "Daily snapshot of my-share", * }); * ``` * * ## Import * * A cloud storage file share snapshot can be imported using the `service_name` and `snapshot_id`, separated by `/`: * * terraform * * import { * * to = ovh_cloud_storage_file_share_snapshot.snapshot * * id = "/" * * } * * bash * * ```sh * $ pulumi import ovh:index/cloudStorageFileShareSnapshot:CloudStorageFileShareSnapshot snapshot service_name/snapshot_id * ``` */ export declare class CloudStorageFileShareSnapshot extends pulumi.CustomResource { /** * Get an existing CloudStorageFileShareSnapshot 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?: CloudStorageFileShareSnapshotState, opts?: pulumi.CustomResourceOptions): CloudStorageFileShareSnapshot; /** * Returns true if the given object is an instance of CloudStorageFileShareSnapshot. 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 CloudStorageFileShareSnapshot; /** * 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 file storage snapshot: */ readonly currentState: pulumi.Output; /** * Snapshot description. */ readonly description: pulumi.Output; /** * Snapshot name. */ readonly name: pulumi.Output; /** * Snapshot readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: pulumi.Output; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ readonly serviceName: pulumi.Output; /** * ID of the file share to snapshot. **Changing this value recreates the resource.** */ readonly shareId: pulumi.Output; /** * Last update date of the snapshot. */ readonly updatedAt: pulumi.Output; /** * Create a CloudStorageFileShareSnapshot 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: CloudStorageFileShareSnapshotArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStorageFileShareSnapshot resources. */ export interface CloudStorageFileShareSnapshotState { /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Creation date of the snapshot. */ createdAt?: pulumi.Input; /** * Current state of the file storage snapshot: */ currentState?: pulumi.Input; /** * Snapshot description. */ description?: pulumi.Input; /** * Snapshot name. */ name?: pulumi.Input; /** * Snapshot readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ resourceStatus?: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * ID of the file share to snapshot. **Changing this value recreates the resource.** */ shareId?: pulumi.Input; /** * Last update date of the snapshot. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a CloudStorageFileShareSnapshot resource. */ export interface CloudStorageFileShareSnapshotArgs { /** * Snapshot description. */ description?: pulumi.Input; /** * Snapshot name. */ name?: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName: pulumi.Input; /** * ID of the file share to snapshot. **Changing this value recreates the resource.** */ shareId: pulumi.Input; }