UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

76 lines (75 loc) 1.91 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get information about a node pool in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const dev = nomad.getNodePool({ * name: "dev", * }); * ``` */ export declare function getNodePool(args: GetNodePoolArgs, opts?: pulumi.InvokeOptions): Promise<GetNodePoolResult>; /** * A collection of arguments for invoking getNodePool. */ export interface GetNodePoolArgs { /** * `(string)` - The name of the node pool to fetch. */ name: string; } /** * A collection of values returned by getNodePool. */ export interface GetNodePoolResult { /** * `(string)` - The description of the node pool. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * `(map[string]string)` - Arbitrary KV metadata associated with the * node pool. */ readonly meta: { [key: string]: string; }; readonly name: string; /** * `(block)` - Scheduler configuration for the node pool. */ readonly schedulerConfigs: outputs.GetNodePoolSchedulerConfig[]; } /** * Get information about a node pool in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const dev = nomad.getNodePool({ * name: "dev", * }); * ``` */ export declare function getNodePoolOutput(args: GetNodePoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodePoolResult>; /** * A collection of arguments for invoking getNodePool. */ export interface GetNodePoolOutputArgs { /** * `(string)` - The name of the node pool to fetch. */ name: pulumi.Input<string>; }