UNPKG

@pulumi/hcloud

Version:

A Pulumi package for creating and managing hcloud cloud resources.

74 lines 2.38 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.getLoadBalancerTypeOutput = exports.getLoadBalancerType = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Provides details about a specific Hetzner Cloud Load Balancer Type. * * Use this resource to get detailed information about a specific Load Balancer Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getLoadBalancerType({ * id: 1, * }); * const byName = hcloud.getLoadBalancerType({ * name: "lb11", * }); * const main = new hcloud.LoadBalancer("main", { * name: "my-load-balancer", * loadBalancerType: name, * location: "fsn1", * }); * ``` */ function getLoadBalancerType(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("hcloud:index/getLoadBalancerType:getLoadBalancerType", { "id": args.id, "name": args.name, }, opts); } exports.getLoadBalancerType = getLoadBalancerType; /** * Provides details about a specific Hetzner Cloud Load Balancer Type. * * Use this resource to get detailed information about a specific Load Balancer Type. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as hcloud from "@pulumi/hcloud"; * * const byId = hcloud.getLoadBalancerType({ * id: 1, * }); * const byName = hcloud.getLoadBalancerType({ * name: "lb11", * }); * const main = new hcloud.LoadBalancer("main", { * name: "my-load-balancer", * loadBalancerType: name, * location: "fsn1", * }); * ``` */ function getLoadBalancerTypeOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("hcloud:index/getLoadBalancerType:getLoadBalancerType", { "id": args.id, "name": args.name, }, opts); } exports.getLoadBalancerTypeOutput = getLoadBalancerTypeOutput; //# sourceMappingURL=getLoadBalancerType.js.map