@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
42 lines • 1.61 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.getSchedulerPolicyOutput = exports.getSchedulerPolicy = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieve the cluster's [scheduler configuration](https://www.nomadproject.io/api-docs/operator#sample-response-3).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const global = nomad.getSchedulerPolicy({});
* ```
*/
function getSchedulerPolicy(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getSchedulerPolicy:getSchedulerPolicy", {}, opts);
}
exports.getSchedulerPolicy = getSchedulerPolicy;
/**
* Retrieve the cluster's [scheduler configuration](https://www.nomadproject.io/api-docs/operator#sample-response-3).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const global = nomad.getSchedulerPolicy({});
* ```
*/
function getSchedulerPolicyOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getSchedulerPolicy:getSchedulerPolicy", {}, opts);
}
exports.getSchedulerPolicyOutput = getSchedulerPolicyOutput;
//# sourceMappingURL=getSchedulerPolicy.js.map