UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

104 lines 3.69 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.getFrontendOutput = exports.getFrontend = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * Get information about Scaleway Load Balancer frontends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API 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 "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const ip01 = new scaleway.loadbalancers.Ip("ip01", {}); * const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", { * ipId: ip01.id, * name: "test-lb", * type: "lb-s", * }); * const bkd01 = new scaleway.loadbalancers.Backend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.loadbalancers.Frontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.loadbalancers.getFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.loadbalancers.getFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ function getFrontend(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("scaleway:loadbalancers/getFrontend:getFrontend", { "frontendId": args.frontendId, "lbId": args.lbId, "name": args.name, }, opts); } exports.getFrontend = getFrontend; /** * Get information about Scaleway Load Balancer frontends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API 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 "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const ip01 = new scaleway.loadbalancers.Ip("ip01", {}); * const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", { * ipId: ip01.id, * name: "test-lb", * type: "lb-s", * }); * const bkd01 = new scaleway.loadbalancers.Backend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.loadbalancers.Frontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.loadbalancers.getFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.loadbalancers.getFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ function getFrontendOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("scaleway:loadbalancers/getFrontend:getFrontend", { "frontendId": args.frontendId, "lbId": args.lbId, "name": args.name, }, opts); } exports.getFrontendOutput = getFrontendOutput; //# sourceMappingURL=getFrontend.js.map