@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
173 lines (172 loc) • 6.53 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates and manages Scaleway Compute Instance Volumes.
* For more information, see [the documentation](https://developers.scaleway.com/en/products/instance/api/#volumes-7e8a39).
*
* ## Example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
*
* const serverVolume = new scaleway.InstanceVolume("serverVolume", {
* sizeInGb: 20,
* type: "l_ssd",
* });
* ```
*
* ## 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
* ```
*/
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`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
readonly fromSnapshotId: pulumi.Output<string | undefined>;
/**
* If set, the new volume will be copied from this volume. Only one of `sizeInGb`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
readonly fromVolumeId: pulumi.Output<string | 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`, `fromVolumeId` 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: `bSsd` (Block SSD), `lSsd` (Local SSD), `scratch` (Local Scratch SSD).
*/
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.
*/
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`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
fromSnapshotId?: pulumi.Input<string>;
/**
* If set, the new volume will be copied from this volume. Only one of `sizeInGb`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
fromVolumeId?: pulumi.Input<string>;
/**
* 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`, `fromVolumeId` 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: `bSsd` (Block SSD), `lSsd` (Local SSD), `scratch` (Local Scratch SSD).
*/
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`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
fromSnapshotId?: pulumi.Input<string>;
/**
* If set, the new volume will be copied from this volume. Only one of `sizeInGb`, `fromVolumeId` and `fromSnapshotId` should be specified.
*/
fromVolumeId?: pulumi.Input<string>;
/**
* 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`, `fromVolumeId` 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: `bSsd` (Block SSD), `lSsd` (Local SSD), `scratch` (Local Scratch SSD).
*/
type: pulumi.Input<string>;
/**
* `zone`) The zone in which the volume should be created.
*/
zone?: pulumi.Input<string>;
}