UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

126 lines 3.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Retrieves information about a Scaleway Datalab instance. * * ## Example Usage * * ### By ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byId = scaleway.datalab.getDatalab({ * datalabId: main.id, * }); * ``` * * ### By Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byName = scaleway.datalab.getDatalab({ * name: "my-datalab", * region: "fr-par", * }); * ``` */ export declare function getDatalab(args?: GetDatalabArgs, opts?: pulumi.InvokeOptions): Promise<GetDatalabResult>; /** * A collection of arguments for invoking getDatalab. */ export interface GetDatalabArgs { /** * The ID of the Datalab instance to look up. Only one of `datalabId` and `name` should be specified. */ datalabId?: string; /** * The name of the Datalab instance to look up. Only one of `datalabId` and `name` should be specified. */ name?: string; /** * The project ID the Datalab belongs to. */ projectId?: string; /** * `region`) The region the Datalab is in. */ region?: string; } /** * A collection of values returned by getDatalab. */ export interface GetDatalabResult { readonly createdAt: string; readonly datalabId?: string; readonly description: string; readonly hasNotebook: boolean; readonly id: string; readonly main: outputs.datalab.GetDatalabMain; readonly name: string; readonly notebookMasterUrl: string; readonly notebookUrl: string; readonly privateNetworkId: string; readonly projectId: string; readonly region: string; readonly sparkVersion: string; readonly status: string; readonly tags: string[]; readonly totalStorage: outputs.datalab.GetDatalabTotalStorage; readonly updatedAt: string; readonly worker: outputs.datalab.GetDatalabWorker; } /** * Retrieves information about a Scaleway Datalab instance. * * ## Example Usage * * ### By ID * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byId = scaleway.datalab.getDatalab({ * datalabId: main.id, * }); * ``` * * ### By Name * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * const byName = scaleway.datalab.getDatalab({ * name: "my-datalab", * region: "fr-par", * }); * ``` */ export declare function getDatalabOutput(args?: GetDatalabOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDatalabResult>; /** * A collection of arguments for invoking getDatalab. */ export interface GetDatalabOutputArgs { /** * The ID of the Datalab instance to look up. Only one of `datalabId` and `name` should be specified. */ datalabId?: pulumi.Input<string | undefined>; /** * The name of the Datalab instance to look up. Only one of `datalabId` and `name` should be specified. */ name?: pulumi.Input<string | undefined>; /** * The project ID the Datalab belongs to. */ projectId?: pulumi.Input<string | undefined>; /** * `region`) The region the Datalab is in. */ region?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getDatalab.d.ts.map