UNPKG

@pulumi/hcloud

Version:

A Pulumi package for creating and managing hcloud cloud resources.

68 lines 2.1 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.getLoadBalancerOutput = exports.getLoadBalancer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides details about a specific Hetzner Cloud Load Balancer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const lb1 = hcloud.getLoadBalancer({ * name: "my-load-balancer", * }); * const lb2 = hcloud.getLoadBalancer({ * id: 123, * }); * const lb3 = hcloud.getLoadBalancer({ * withSelector: "key=value", * }); * ``` */ function getLoadBalancer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("hcloud:index/getLoadBalancer:getLoadBalancer", { "id": args.id, "name": args.name, "withSelector": args.withSelector, }, opts); } exports.getLoadBalancer = getLoadBalancer; /** * Provides details about a specific Hetzner Cloud Load Balancer. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const lb1 = hcloud.getLoadBalancer({ * name: "my-load-balancer", * }); * const lb2 = hcloud.getLoadBalancer({ * id: 123, * }); * const lb3 = hcloud.getLoadBalancer({ * withSelector: "key=value", * }); * ``` */ function getLoadBalancerOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("hcloud:index/getLoadBalancer:getLoadBalancer", { "id": args.id, "name": args.name, "withSelector": args.withSelector, }, opts); } exports.getLoadBalancerOutput = getLoadBalancerOutput; //# sourceMappingURL=getLoadBalancer.js.map