@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
54 lines • 1.66 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.getNodePoolsOutput = exports.getNodePools = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieve a list of node pools available in Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const prod = nomad.getNodePools({
* filter: "Meta.env == \"prod\"",
* });
* ```
*/
function getNodePools(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getNodePools:getNodePools", {
"filter": args.filter,
"prefix": args.prefix,
}, opts);
}
exports.getNodePools = getNodePools;
/**
* Retrieve a list of node pools available in Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const prod = nomad.getNodePools({
* filter: "Meta.env == \"prod\"",
* });
* ```
*/
function getNodePoolsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getNodePools:getNodePools", {
"filter": args.filter,
"prefix": args.prefix,
}, opts);
}
exports.getNodePoolsOutput = getNodePoolsOutput;
//# sourceMappingURL=getNodePools.js.map