UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

79 lines (78 loc) 2.11 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Retrieve a list of node pools available in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const prod = nomad.getNodePools({ * filter: "Meta.env == \"prod\"", * }); * ``` */ export declare function getNodePools(args?: GetNodePoolsArgs, opts?: pulumi.InvokeOptions): Promise<GetNodePoolsResult>; /** * A collection of arguments for invoking getNodePools. */ export interface GetNodePoolsArgs { /** * `(string)` - Specifies the [expression][nomadApiFilter] used to * filter the results. */ filter?: string; /** * `(string)` - Specifies a string to filter node pools based on a name * prefix. */ prefix?: string; } /** * A collection of values returned by getNodePools. */ export interface GetNodePoolsResult { readonly filter?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * `(list of node pools)` - A list of node pools matching the * search criteria. */ readonly nodePools: outputs.GetNodePoolsNodePool[]; readonly prefix?: string; } /** * Retrieve a list of node pools available in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const prod = nomad.getNodePools({ * filter: "Meta.env == \"prod\"", * }); * ``` */ export declare function getNodePoolsOutput(args?: GetNodePoolsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNodePoolsResult>; /** * A collection of arguments for invoking getNodePools. */ export interface GetNodePoolsOutputArgs { /** * `(string)` - Specifies the [expression][nomadApiFilter] used to * filter the results. */ filter?: pulumi.Input<string>; /** * `(string)` - Specifies a string to filter node pools based on a name * prefix. */ prefix?: pulumi.Input<string>; }