@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
108 lines • 4.33 kB
JavaScript
;
// *** 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 [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,
* });
* ```
*/
/** @deprecated scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend */
function getLbFrontend(args, opts) {
pulumi.log.warn("getLbFrontend is deprecated: scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend");
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 [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,
* });
* ```
*/
/** @deprecated scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend */
function getLbFrontendOutput(args, opts) {
pulumi.log.warn("getLbFrontend is deprecated: scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend");
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getLbFrontend:getLbFrontend", {
"frontendId": args.frontendId,
"lbId": args.lbId,
"name": args.name,
}, opts);
}
exports.getLbFrontendOutput = getLbFrontendOutput;
//# sourceMappingURL=getLbFrontend.js.map