UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

98 lines 4.12 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.getLbBackendOutput = exports.getLbBackend = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about Scaleway Load Balancer backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.loadbalancers.Ip("main", {}); * const mainLoadBalancer = new scaleway.loadbalancers.LoadBalancer("main", { * ipId: main.id, * name: "data-test-lb-backend", * type: "LB-S", * }); * const mainBackend = new scaleway.loadbalancers.Backend("main", { * lbId: mainLoadBalancer.id, * name: "backend01", * forwardProtocol: "http", * forwardPort: 80, * }); * const byID = scaleway.loadbalancers.getBackendOutput({ * backendId: mainBackend.id, * }); * const byName = scaleway.loadbalancers.getBackendOutput({ * name: mainBackend.name, * lbId: mainLoadBalancer.id, * }); * ``` */ /** @deprecated scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend */ function getLbBackend(args, opts) { pulumi.log.warn("getLbBackend is deprecated: scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getLbBackend:getLbBackend", { "backendId": args.backendId, "lbId": args.lbId, "name": args.name, }, opts); } exports.getLbBackend = getLbBackend; /** * Get information about Scaleway Load Balancer backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const main = new scaleway.loadbalancers.Ip("main", {}); * const mainLoadBalancer = new scaleway.loadbalancers.LoadBalancer("main", { * ipId: main.id, * name: "data-test-lb-backend", * type: "LB-S", * }); * const mainBackend = new scaleway.loadbalancers.Backend("main", { * lbId: mainLoadBalancer.id, * name: "backend01", * forwardProtocol: "http", * forwardPort: 80, * }); * const byID = scaleway.loadbalancers.getBackendOutput({ * backendId: mainBackend.id, * }); * const byName = scaleway.loadbalancers.getBackendOutput({ * name: mainBackend.name, * lbId: mainLoadBalancer.id, * }); * ``` */ /** @deprecated scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend */ function getLbBackendOutput(args, opts) { pulumi.log.warn("getLbBackend is deprecated: scaleway.index/getlbbackend.getLbBackend has been deprecated in favor of scaleway.loadbalancers/getbackend.getBackend"); args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:index/getLbBackend:getLbBackend", { "backendId": args.backendId, "lbId": args.lbId, "name": args.name, }, opts); } exports.getLbBackendOutput = getLbBackendOutput; //# sourceMappingURL=getLbBackend.js.map