UNPKG

@pulumi/consul

Version:

A Pulumi package for creating and managing consul resources.

56 lines 2.42 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.getAgentConfigOutput = exports.getAgentConfig = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * > **Note:** The `consul.getAgentConfig` resource differs from [`consul.getAgentSelf`](https://www.terraform.io/docs/providers/consul/d/agent_self.html), * providing less information but utilizing stable APIs. `consul.getAgentSelf` will be * deprecated in a future release. * * The `consul.getAgentConfig` data source returns * [configuration data](https://www.consul.io/api/agent.html#read-configuration) * from the agent specified in the `provider`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const remoteAgent = consul.getAgentConfig({}); * export const consulVersion = remoteAgent.then(remoteAgent => remoteAgent.version); * ``` */ function getAgentConfig(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("consul:index/getAgentConfig:getAgentConfig", {}, opts); } exports.getAgentConfig = getAgentConfig; /** * > **Note:** The `consul.getAgentConfig` resource differs from [`consul.getAgentSelf`](https://www.terraform.io/docs/providers/consul/d/agent_self.html), * providing less information but utilizing stable APIs. `consul.getAgentSelf` will be * deprecated in a future release. * * The `consul.getAgentConfig` data source returns * [configuration data](https://www.consul.io/api/agent.html#read-configuration) * from the agent specified in the `provider`. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const remoteAgent = consul.getAgentConfig({}); * export const consulVersion = remoteAgent.then(remoteAgent => remoteAgent.version); * ``` */ function getAgentConfigOutput(opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("consul:index/getAgentConfig:getAgentConfig", {}, opts); } exports.getAgentConfigOutput = getAgentConfigOutput; //# sourceMappingURL=getAgentConfig.js.map