UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

80 lines (79 loc) 2.08 kB
import * as pulumi from "@pulumi/pulumi"; /** * `spacelift.WorkerPool` represents a worker pool assigned to the Spacelift account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const k8s-core = spacelift.getWorkerPool({ * workerPoolId: "01G1KTZ4BA86RBN3XNN3YK9EWT", * }); * ``` */ export declare function getWorkerPool(args: GetWorkerPoolArgs, opts?: pulumi.InvokeOptions): Promise<GetWorkerPoolResult>; /** * A collection of arguments for invoking getWorkerPool. */ export interface GetWorkerPoolArgs { /** * ID of the worker pool */ workerPoolId: string; } /** * A collection of values returned by getWorkerPool. */ export interface GetWorkerPoolResult { /** * credentials necessary to connect WorkerPool's workers to the control plane */ readonly config: string; /** * description of the worker pool */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly labels: string[]; /** * name of the worker pool */ readonly name: string; /** * ID (slug) of the space the worker pool is in */ readonly spaceId: string; /** * ID of the worker pool */ readonly workerPoolId: string; } /** * `spacelift.WorkerPool` represents a worker pool assigned to the Spacelift account. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as spacelift from "@pulumi/spacelift"; * * const k8s-core = spacelift.getWorkerPool({ * workerPoolId: "01G1KTZ4BA86RBN3XNN3YK9EWT", * }); * ``` */ export declare function getWorkerPoolOutput(args: GetWorkerPoolOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetWorkerPoolResult>; /** * A collection of arguments for invoking getWorkerPool. */ export interface GetWorkerPoolOutputArgs { /** * ID of the worker pool */ workerPoolId: pulumi.Input<string>; }