UNPKG

@pulumi/consul

Version:

A Pulumi package for creating and managing consul resources.

54 lines 2.04 kB
"use strict"; // *** 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.getAutopilotHealthOutput = exports.getAutopilotHealth = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * The `consul.getAutopilotHealth` data source returns * [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health) * about the current Consul cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const read = consul.getAutopilotHealth({}); * export const health = read.then(read => read.healthy); * ``` */ function getAutopilotHealth(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("consul:index/getAutopilotHealth:getAutopilotHealth", { "datacenter": args.datacenter, }, opts); } exports.getAutopilotHealth = getAutopilotHealth; /** * The `consul.getAutopilotHealth` data source returns * [autopilot health information](https://www.consul.io/api/operator/autopilot.html#read-health) * about the current Consul cluster. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as consul from "@pulumi/consul"; * * const read = consul.getAutopilotHealth({}); * export const health = read.then(read => read.healthy); * ``` */ function getAutopilotHealthOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("consul:index/getAutopilotHealth:getAutopilotHealth", { "datacenter": args.datacenter, }, opts); } exports.getAutopilotHealthOutput = getAutopilotHealthOutput; //# sourceMappingURL=getAutopilotHealth.js.map