@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
57 lines (56 loc) • 1.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Parse a HCL jobspec and produce the equivalent JSON encoded job.
*/
export declare function getJobParser(args: GetJobParserArgs, opts?: pulumi.InvokeOptions): Promise<GetJobParserResult>;
/**
* A collection of arguments for invoking getJobParser.
*/
export interface GetJobParserArgs {
/**
* `(boolean: true)` - flag to enable setting any unset fields to their default values.
*/
canonicalize?: boolean;
/**
* `(string)` - the HCL definition of the job.
*/
hcl: string;
}
/**
* A collection of values returned by getJobParser.
*/
export interface GetJobParserResult {
/**
* `(boolean: true)` - flag to enable setting any unset fields to their default values.
*/
readonly canonicalize?: boolean;
/**
* `(string)` - the HCL definition of the job.
*/
readonly hcl: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* `(string)` - the parsed job as JSON string.
*/
readonly json: string;
}
/**
* Parse a HCL jobspec and produce the equivalent JSON encoded job.
*/
export declare function getJobParserOutput(args: GetJobParserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetJobParserResult>;
/**
* A collection of arguments for invoking getJobParser.
*/
export interface GetJobParserOutputArgs {
/**
* `(boolean: true)` - flag to enable setting any unset fields to their default values.
*/
canonicalize?: pulumi.Input<boolean>;
/**
* `(string)` - the HCL definition of the job.
*/
hcl: pulumi.Input<string>;
}