UNPKG

@spacelift-io/pulumi-spacelift

Version:

A Pulumi package for creating and managing Spacelift resources.

47 lines 1.59 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getWorkerPoolOutput = exports.getWorkerPool = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `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", * }); * ``` */ function getWorkerPool(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("spacelift:index/getWorkerPool:getWorkerPool", { "workerPoolId": args.workerPoolId, }, opts); } exports.getWorkerPool = getWorkerPool; /** * `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", * }); * ``` */ function getWorkerPoolOutput(args, opts) { return pulumi.output(args).apply((a) => getWorkerPool(a, opts)); } exports.getWorkerPoolOutput = getWorkerPoolOutput; //# sourceMappingURL=getWorkerPool.js.map