UNPKG

@pulumi/consul

Version:

A Pulumi package for creating and managing consul resources.

54 lines 2.36 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.getServiceHealthOutput = exports.getServiceHealth = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * `consul.getServiceHealth` can be used to get the list of the instances that * are currently healthy, according to their associated health-checks. * The result includes the list of service instances, the node associated to each * instance and its health-checks. * * This resource is likely to change as frequently as the health-checks are being * updated, you should expect different results in a frequent basis. */ function getServiceHealth(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("consul:index/getServiceHealth:getServiceHealth", { "datacenter": args.datacenter, "filter": args.filter, "name": args.name, "near": args.near, "nodeMeta": args.nodeMeta, "passing": args.passing, "tag": args.tag, "waitFor": args.waitFor, }, opts); } exports.getServiceHealth = getServiceHealth; /** * `consul.getServiceHealth` can be used to get the list of the instances that * are currently healthy, according to their associated health-checks. * The result includes the list of service instances, the node associated to each * instance and its health-checks. * * This resource is likely to change as frequently as the health-checks are being * updated, you should expect different results in a frequent basis. */ function getServiceHealthOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("consul:index/getServiceHealth:getServiceHealth", { "datacenter": args.datacenter, "filter": args.filter, "name": args.name, "near": args.near, "nodeMeta": args.nodeMeta, "passing": args.passing, "tag": args.tag, "waitFor": args.waitFor, }, opts); } exports.getServiceHealthOutput = getServiceHealthOutput; //# sourceMappingURL=getServiceHealth.js.map