import * as pulumi from "@pulumi/pulumi"; /** * Provides a Civo volume which can be attached to an instance in order to provide expanded storage. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as civo from "@pulumi/civo"; * * // Get network * const defaultNetwork = civo.getNetwork({ * label: "Default", * }); * // Create volume * const db = new civo.Volume("db", { * name: "backup-data", * sizeGb: 5, * networkId: defaultNetwork.then(defaultNetwork => defaultNetwork.id), * }, { * dependsOn: [defaultNetwork], * }); * ``` * * ## Import * * using ID * * ```sh * $ pulumi import civo:index/volume:Volume db 506f78a4-e098-11e5-ad9f-000f53306ae1 * ``` */ export declare class Volume extends pulumi.CustomResource { /** * Get an existing Volume 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?: VolumeState, opts?: pulumi.CustomResourceOptions): Volume; /** * Returns true if the given object is an instance of Volume. 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 Volume; /** * The mount point of the volume (from instance's perspective) */ readonly mountPoint: pulumi.Output; /** * A name that you wish to use to refer to this volume */ readonly name: pulumi.Output; /** * The network that the volume belongs to */ readonly networkId: pulumi.Output; /** * The region for the volume, if not declare we use the region in declared in the provider. */ readonly region: pulumi.Output; /** * A minimum of 1 and a maximum of your available disk space from your quota specifies the size of the volume in gigabytes */ readonly sizeGb: pulumi.Output; /** * The type of the volume */ readonly volumeType: pulumi.Output; /** * Create a Volume 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: VolumeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Volume resources. */ export interface VolumeState { /** * The mount point of the volume (from instance's perspective) */ mountPoint?: pulumi.Input; /** * A name that you wish to use to refer to this volume */ name?: pulumi.Input; /** * The network that the volume belongs to */ networkId?: pulumi.Input; /** * The region for the volume, if not declare we use the region in declared in the provider. */ region?: pulumi.Input; /** * A minimum of 1 and a maximum of your available disk space from your quota specifies the size of the volume in gigabytes */ sizeGb?: pulumi.Input; /** * The type of the volume */ volumeType?: pulumi.Input; } /** * The set of arguments for constructing a Volume resource. */ export interface VolumeArgs { /** * A name that you wish to use to refer to this volume */ name?: pulumi.Input; /** * The network that the volume belongs to */ networkId: pulumi.Input; /** * The region for the volume, if not declare we use the region in declared in the provider. */ region?: pulumi.Input; /** * A minimum of 1 and a maximum of your available disk space from your quota specifies the size of the volume in gigabytes */ sizeGb: pulumi.Input; /** * The type of the volume */ volumeType?: pulumi.Input; }