UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

188 lines (187 loc) 7.71 kB
import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway compute Instance Volumes. * For more information, see the [API documentation](https://www.scaleway.com/en/developers/api/instance/#path-volumes-list-volumes). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const serverVolume = new scaleway.instance.Volume("server_volume", { * type: "l_ssd", * name: "some-volume-name", * sizeInGb: 20, * }); * ``` * * ## Import * * volumes can be imported using the `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/instanceVolume:InstanceVolume server_volume fr-par-1/11111111-1111-1111-1111-111111111111 * ``` * * @deprecated scaleway.index/instancevolume.InstanceVolume has been deprecated in favor of scaleway.instance/volume.Volume */ export declare class InstanceVolume extends pulumi.CustomResource { /** * Get an existing InstanceVolume 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<pulumi.ID>, state?: InstanceVolumeState, opts?: pulumi.CustomResourceOptions): InstanceVolume; /** * Returns true if the given object is an instance of InstanceVolume. 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 InstanceVolume; /** * If set, the new volume will be created from this snapshot. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ readonly fromSnapshotId: pulumi.Output<string | undefined>; /** * If true, consider that this volume may have been migrated and no longer exists. */ readonly migrateToSbs: pulumi.Output<boolean | undefined>; /** * The name of the volume. If not provided it will be randomly generated. */ readonly name: pulumi.Output<string>; /** * The organization ID the volume is associated with. */ readonly organizationId: pulumi.Output<string>; /** * `projectId`) The ID of the project the volume is associated with. */ readonly projectId: pulumi.Output<string>; /** * The id of the associated server. */ readonly serverId: pulumi.Output<string>; /** * The size of the volume. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ readonly sizeInGb: pulumi.Output<number | undefined>; /** * A list of tags to apply to the volume. */ readonly tags: pulumi.Output<string[] | undefined>; /** * The type of the volume. The possible values are: `lSsd` (Local SSD), `scratch` (Local Scratch SSD). * * > **Important:** Volumes with type `bSsd` (Block SSD) are deprecated and cannot be managed using the `scaleway.instance.Volume` resource anymore. Please use the `scaleway.block.Volume` resource instead. * If you want to migrate existing volumes, you can visit [this page](https://www.scaleway.com/en/docs/instances/how-to/migrate-volumes-snapshots-to-sbs/) for more information. */ readonly type: pulumi.Output<string>; /** * `zone`) The zone in which the volume should be created. */ readonly zone: pulumi.Output<string>; /** * Create a InstanceVolume 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. */ /** @deprecated scaleway.index/instancevolume.InstanceVolume has been deprecated in favor of scaleway.instance/volume.Volume */ constructor(name: string, args: InstanceVolumeArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceVolume resources. */ export interface InstanceVolumeState { /** * If set, the new volume will be created from this snapshot. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ fromSnapshotId?: pulumi.Input<string>; /** * If true, consider that this volume may have been migrated and no longer exists. */ migrateToSbs?: pulumi.Input<boolean>; /** * The name of the volume. If not provided it will be randomly generated. */ name?: pulumi.Input<string>; /** * The organization ID the volume is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the volume is associated with. */ projectId?: pulumi.Input<string>; /** * The id of the associated server. */ serverId?: pulumi.Input<string>; /** * The size of the volume. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ sizeInGb?: pulumi.Input<number>; /** * A list of tags to apply to the volume. */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * The type of the volume. The possible values are: `lSsd` (Local SSD), `scratch` (Local Scratch SSD). * * > **Important:** Volumes with type `bSsd` (Block SSD) are deprecated and cannot be managed using the `scaleway.instance.Volume` resource anymore. Please use the `scaleway.block.Volume` resource instead. * If you want to migrate existing volumes, you can visit [this page](https://www.scaleway.com/en/docs/instances/how-to/migrate-volumes-snapshots-to-sbs/) for more information. */ type?: pulumi.Input<string>; /** * `zone`) The zone in which the volume should be created. */ zone?: pulumi.Input<string>; } /** * The set of arguments for constructing a InstanceVolume resource. */ export interface InstanceVolumeArgs { /** * If set, the new volume will be created from this snapshot. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ fromSnapshotId?: pulumi.Input<string>; /** * If true, consider that this volume may have been migrated and no longer exists. */ migrateToSbs?: pulumi.Input<boolean>; /** * The name of the volume. If not provided it will be randomly generated. */ name?: pulumi.Input<string>; /** * `projectId`) The ID of the project the volume is associated with. */ projectId?: pulumi.Input<string>; /** * The size of the volume. Only one of `sizeInGb` and `fromSnapshotId` should be specified. */ sizeInGb?: pulumi.Input<number>; /** * A list of tags to apply to the volume. */ tags?: pulumi.Input<pulumi.Input<string>[]>; /** * The type of the volume. The possible values are: `lSsd` (Local SSD), `scratch` (Local Scratch SSD). * * > **Important:** Volumes with type `bSsd` (Block SSD) are deprecated and cannot be managed using the `scaleway.instance.Volume` resource anymore. Please use the `scaleway.block.Volume` resource instead. * If you want to migrate existing volumes, you can visit [this page](https://www.scaleway.com/en/docs/instances/how-to/migrate-volumes-snapshots-to-sbs/) for more information. */ type: pulumi.Input<string>; /** * `zone`) The zone in which the volume should be created. */ zone?: pulumi.Input<string>; }