@pulumi/nomad
Version:
A Pulumi package for creating and managing nomad cloud resources.
42 lines • 1.4 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.getDeploymentsOutput = exports.getDeployments = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Retrieve a list of deployments in Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getDeployments({});
* ```
*/
function getDeployments(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("nomad:index/getDeployments:getDeployments", {}, opts);
}
exports.getDeployments = getDeployments;
/**
* Retrieve a list of deployments in Nomad.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as nomad from "@pulumi/nomad";
*
* const example = nomad.getDeployments({});
* ```
*/
function getDeploymentsOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("nomad:index/getDeployments:getDeployments", {}, opts);
}
exports.getDeploymentsOutput = getDeploymentsOutput;
//# sourceMappingURL=getDeployments.js.map