UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

94 lines 3.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.getLbFrontendOutput = exports.getLbFrontend = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get information about Scaleway Load-Balancer Frontends. * For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const ip01 = new scaleway.LoadbalancerIp("ip01", {}); * const lb01 = new scaleway.Loadbalancer("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LoadbalancerBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LoadbalancerFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.getLbFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.getLbFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ function getLbFrontend(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:index/getLbFrontend:getLbFrontend", { "frontendId": args.frontendId, "lbId": args.lbId, "name": args.name, }, opts); } exports.getLbFrontend = getLbFrontend; /** * Get information about Scaleway Load-Balancer Frontends. * For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const ip01 = new scaleway.LoadbalancerIp("ip01", {}); * const lb01 = new scaleway.Loadbalancer("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LoadbalancerBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LoadbalancerFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.getLbFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.getLbFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ function getLbFrontendOutput(args, opts) { return pulumi.output(args).apply((a) => getLbFrontend(a, opts)); } exports.getLbFrontendOutput = getLbFrontendOutput; //# sourceMappingURL=getLbFrontend.js.map