@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
30 lines • 1.21 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getJobParserOutput = exports.getJobParser = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Parse a HCL jobspec and produce the equivalent JSON encoded job.
*/
function getJobParser(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getJobParser:getJobParser", {
"canonicalize": args.canonicalize,
"hcl": args.hcl,
}, opts);
}
exports.getJobParser = getJobParser;
/**
* Parse a HCL jobspec and produce the equivalent JSON encoded job.
*/
function getJobParserOutput(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getJobParser:getJobParser", {
"canonicalize": args.canonicalize,
"hcl": args.hcl,
}, opts);
}
exports.getJobParserOutput = getJobParserOutput;
//# sourceMappingURL=getJobParser.js.map