UNPKG

@pulumi/nomad

Version:

A Pulumi package for creating and managing nomad cloud resources.

64 lines 1.98 kB
"use strict"; // *** 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.getJobOutput = exports.getJob = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information on a job ID. The aim of this datasource is to enable * you to act on various settings and states of a particular job. * * An error is triggered if zero or more than one result is returned by the query. * * ## Example Usage * * Get the data about a snapshot: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const example = nomad.getJob({ * jobId: "example", * namespace: "dev", * }); * ``` */ function getJob(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("nomad:index/getJob:getJob", { "jobId": args.jobId, "namespace": args.namespace, }, opts); } exports.getJob = getJob; /** * Get information on a job ID. The aim of this datasource is to enable * you to act on various settings and states of a particular job. * * An error is triggered if zero or more than one result is returned by the query. * * ## Example Usage * * Get the data about a snapshot: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nomad from "@pulumi/nomad"; * * const example = nomad.getJob({ * jobId: "example", * namespace: "dev", * }); * ``` */ function getJobOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("nomad:index/getJob:getJob", { "jobId": args.jobId, "namespace": args.namespace, }, opts); } exports.getJobOutput = getJobOutput; //# sourceMappingURL=getJob.js.map