import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates a block storage volume in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const volume = new ovh.CloudStorageBlockVolume("volume", { * serviceName: "xxxxxxxxxx", * name: "my-volume", * size: 10, * region: "GRA1", * volumeType: "CLASSIC", * }); * ``` */ export declare class CloudStorageBlockVolume extends pulumi.CustomResource { /** * Get an existing CloudStorageBlockVolume 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?: CloudStorageBlockVolumeState, opts?: pulumi.CustomResourceOptions): CloudStorageBlockVolume; /** * Returns true if the given object is an instance of CloudStorageBlockVolume. 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 CloudStorageBlockVolume; /** * Computed hash representing the current target specification value. */ readonly checksum: pulumi.Output; /** * Source to create the volume from. **Changing this value recreates the resource.** */ readonly createFrom: pulumi.Output; /** * Creation date of the volume. */ readonly createdAt: pulumi.Output; /** * Current state of the block storage volume: */ readonly currentState: pulumi.Output; /** * Encryption configuration for the volume. */ readonly encryption: pulumi.Output; /** * Volume name. */ readonly name: pulumi.Output; /** * Region where the volume will be created. **Changing this value recreates the resource.** */ readonly region: pulumi.Output; /** * Volume 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; /** * Size of the volume in GB. */ readonly size: pulumi.Output; /** * Last update date of the volume. */ readonly updatedAt: pulumi.Output; /** * Volume type (`CLASSIC`, `HIGH_SPEED`, `HIGH_SPEED_GEN2`). Can be changed after creation (triggers online retype). */ readonly volumeType: pulumi.Output; /** * Create a CloudStorageBlockVolume 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: CloudStorageBlockVolumeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering CloudStorageBlockVolume resources. */ export interface CloudStorageBlockVolumeState { /** * Computed hash representing the current target specification value. */ checksum?: pulumi.Input; /** * Source to create the volume from. **Changing this value recreates the resource.** */ createFrom?: pulumi.Input; /** * Creation date of the volume. */ createdAt?: pulumi.Input; /** * Current state of the block storage volume: */ currentState?: pulumi.Input; /** * Encryption configuration for the volume. */ encryption?: pulumi.Input; /** * Volume name. */ name?: pulumi.Input; /** * Region where the volume will be created. **Changing this value recreates the resource.** */ region?: pulumi.Input; /** * Volume 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; /** * Size of the volume in GB. */ size?: pulumi.Input; /** * Last update date of the volume. */ updatedAt?: pulumi.Input; /** * Volume type (`CLASSIC`, `HIGH_SPEED`, `HIGH_SPEED_GEN2`). Can be changed after creation (triggers online retype). */ volumeType?: pulumi.Input; } /** * The set of arguments for constructing a CloudStorageBlockVolume resource. */ export interface CloudStorageBlockVolumeArgs { /** * Source to create the volume from. **Changing this value recreates the resource.** */ createFrom?: pulumi.Input; /** * Encryption configuration for the volume. */ encryption?: pulumi.Input; /** * Volume name. */ name?: pulumi.Input; /** * Region where the volume will be created. **Changing this value recreates the resource.** */ region: pulumi.Input; /** * Service name of the resource representing the id of the cloud project. **Changing this value recreates the resource.** */ serviceName?: pulumi.Input; /** * Size of the volume in GB. */ size: pulumi.Input; /** * Volume type (`CLASSIC`, `HIGH_SPEED`, `HIGH_SPEED_GEN2`). Can be changed after creation (triggers online retype). */ volumeType?: pulumi.Input; }