@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
125 lines • 5.05 kB
JavaScript
;
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
var desc = Object.getOwnPropertyDescriptor(m, k);
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
desc = { enumerable: true, get: function() { return m[k]; } };
}
Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLbRouteOutput = exports.getLbRoute = void 0;
const pulumi = __importStar(require("@pulumi/pulumi"));
const utilities = __importStar(require("./utilities"));
/**
* Get information about Scaleway Load Balancer routes.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* 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 rt01 = new scaleway.loadbalancers.Route("rt01", {
* frontendId: frt01.id,
* backendId: bkd01.id,
* matchSni: "sni.scaleway.com",
* });
* const byID = scaleway.loadbalancers.getRouteOutput({
* routeId: rt01.id,
* });
* ```
*/
/** @deprecated scaleway.index/getlbroute.getLbRoute has been deprecated in favor of scaleway.loadbalancers/getroute.getRoute */
function getLbRoute(args, opts) {
pulumi.log.warn("getLbRoute is deprecated: scaleway.index/getlbroute.getLbRoute has been deprecated in favor of scaleway.loadbalancers/getroute.getRoute");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getLbRoute:getLbRoute", {
"routeId": args.routeId,
}, opts);
}
exports.getLbRoute = getLbRoute;
/**
* Get information about Scaleway Load Balancer routes.
*
* For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* 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 rt01 = new scaleway.loadbalancers.Route("rt01", {
* frontendId: frt01.id,
* backendId: bkd01.id,
* matchSni: "sni.scaleway.com",
* });
* const byID = scaleway.loadbalancers.getRouteOutput({
* routeId: rt01.id,
* });
* ```
*/
/** @deprecated scaleway.index/getlbroute.getLbRoute has been deprecated in favor of scaleway.loadbalancers/getroute.getRoute */
function getLbRouteOutput(args, opts) {
pulumi.log.warn("getLbRoute is deprecated: scaleway.index/getlbroute.getLbRoute has been deprecated in favor of scaleway.loadbalancers/getroute.getRoute");
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("scaleway:index/getLbRoute:getLbRoute", {
"routeId": args.routeId,
}, opts);
}
exports.getLbRouteOutput = getLbRouteOutput;
//# sourceMappingURL=getLbRoute.js.map