UNPKG

@ediri/vultr

Version:

A Pulumi package for creating and managing Vultr cloud resources.

64 lines 1.95 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.getLoadBalancerOutput = exports.getLoadBalancer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about a Vultr load balancer. * * ## Example Usage * * Get the information for a load balancer by `label`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myLb = vultr.getLoadBalancer({ * filters: [{ * name: "label", * values: ["my-lb-label"], * }], * }); * ``` */ function getLoadBalancer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("vultr:index/getLoadBalancer:getLoadBalancer", { "filters": args.filters, "proxyProtocol": args.proxyProtocol, }, opts); } exports.getLoadBalancer = getLoadBalancer; /** * Get information about a Vultr load balancer. * * ## Example Usage * * Get the information for a load balancer by `label`: * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as vultr from "@ediri/vultr"; * * const myLb = vultr.getLoadBalancer({ * filters: [{ * name: "label", * values: ["my-lb-label"], * }], * }); * ``` */ function getLoadBalancerOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("vultr:index/getLoadBalancer:getLoadBalancer", { "filters": args.filters, "proxyProtocol": args.proxyProtocol, }, opts); } exports.getLoadBalancerOutput = getLoadBalancerOutput; //# sourceMappingURL=getLoadBalancer.js.map