UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

80 lines (79 loc) 2.07 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get information about a namespace in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const namespaces = nomad.getNamespace({ * name: "default", * }); * ``` */ export declare function getNamespace(args: GetNamespaceArgs, opts?: pulumi.InvokeOptions): Promise<GetNamespaceResult>; /** * A collection of arguments for invoking getNamespace. */ export interface GetNamespaceArgs { /** * `(string)` - The name of the namespace. */ name: string; } /** * A collection of values returned by getNamespace. */ export interface GetNamespaceResult { /** * `(block)` - Capabilities of the namespace */ readonly capabilities: outputs.GetNamespaceCapability[]; /** * `(string)` - The description of the namespace. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * `(map[string]string)` - Arbitrary KV metadata associated with the namespace. */ readonly meta: { [key: string]: string; }; readonly name: string; readonly nodePoolConfigs: outputs.GetNamespaceNodePoolConfig[]; /** * `(string)` - The quota associated with the namespace. */ readonly quota: string; } /** * Get information about a namespace in Nomad. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const namespaces = nomad.getNamespace({ * name: "default", * }); * ``` */ export declare function getNamespaceOutput(args: GetNamespaceOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetNamespaceResult>; /** * A collection of arguments for invoking getNamespace. */ export interface GetNamespaceOutputArgs { /** * `(string)` - The name of the namespace. */ name: pulumi.Input<string>; }