@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
73 lines (72 loc) • 1.96 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = new nomad.Variable("example", {path: "path/of/existing/variable"});
* ```
*/
export declare function getVariable(args: GetVariableArgs, opts?: pulumi.InvokeOptions): Promise<GetVariableResult>;
/**
* A collection of arguments for invoking getVariable.
*/
export interface GetVariableArgs {
/**
* `(string: "default")` - The namepsace in which the variable exists.
*/
namespace?: string;
/**
* `(string)` - Path to the existing variable.
*/
path: string;
}
/**
* A collection of values returned by getVariable.
*/
export interface GetVariableResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* `(map[string]string)` - Map of items in the variable.
*/
readonly items: {
[key: string]: string;
};
/**
* `(string)` - The namespace in which the variable exists.
*/
readonly namespace?: string;
/**
* `(string)` - The path at which the variable exists.
*/
readonly path: string;
}
/**
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = new nomad.Variable("example", {path: "path/of/existing/variable"});
* ```
*/
export declare function getVariableOutput(args: GetVariableOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVariableResult>;
/**
* A collection of arguments for invoking getVariable.
*/
export interface GetVariableOutputArgs {
/**
* `(string: "default")` - The namepsace in which the variable exists.
*/
namespace?: pulumi.Input<string>;
/**
* `(string)` - Path to the existing variable.
*/
path: pulumi.Input<string>;
}