@pulumi/consul
Version:
A Pulumi package for creating and managing consul resources.
34 lines • 1.91 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAgentSelfOutput = exports.getAgentSelf = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* > **Warning:** The `consul.getAgentSelf` resource has been deprecated and will be removed
* from a future release of the provider. Read the [upgrade instructions](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_self) for more information.
*
* The `consul.getAgentSelf` data source returns
* [configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self)
* from the agent specified in the `provider`.
*/
function getAgentSelf(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("consul:index/getAgentSelf:getAgentSelf", {}, opts);
}
exports.getAgentSelf = getAgentSelf;
/**
* > **Warning:** The `consul.getAgentSelf` resource has been deprecated and will be removed
* from a future release of the provider. Read the [upgrade instructions](https://www.terraform.io/docs/providers/consul/guides/upgrading.html#deprecation-of-consul_agent_self) for more information.
*
* The `consul.getAgentSelf` data source returns
* [configuration and status data](https://www.consul.io/docs/agent/http/agent.html#agent_self)
* from the agent specified in the `provider`.
*/
function getAgentSelfOutput(opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("consul:index/getAgentSelf:getAgentSelf", {}, opts);
}
exports.getAgentSelfOutput = getAgentSelfOutput;
//# sourceMappingURL=getAgentSelf.js.map