UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

112 lines (111 loc) 3.27 kB
import * as pulumi from "@pulumi/pulumi"; /** * Get information about Scaleway Load-Balancer Routes. * For more information, see [the 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 "@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 rt01 = new scaleway.LoadbalancerRoute("rt01", { * frontendId: frt01.id, * backendId: bkd01.id, * matchSni: "sni.scaleway.com", * }); * const byID = scaleway.getLbRouteOutput({ * routeId: rt01.id, * }); * ``` */ export declare function getLbRoute(args: GetLbRouteArgs, opts?: pulumi.InvokeOptions): Promise<GetLbRouteResult>; /** * A collection of arguments for invoking getLbRoute. */ export interface GetLbRouteArgs { /** * The route id. */ routeId: string; } /** * A collection of values returned by getLbRoute. */ export interface GetLbRouteResult { readonly backendId: string; readonly createdAt: string; readonly frontendId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly matchHostHeader: string; readonly matchSni: string; readonly routeId: string; readonly updatedAt: string; } /** * Get information about Scaleway Load-Balancer Routes. * For more information, see [the 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 "@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 rt01 = new scaleway.LoadbalancerRoute("rt01", { * frontendId: frt01.id, * backendId: bkd01.id, * matchSni: "sni.scaleway.com", * }); * const byID = scaleway.getLbRouteOutput({ * routeId: rt01.id, * }); * ``` */ export declare function getLbRouteOutput(args: GetLbRouteOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLbRouteResult>; /** * A collection of arguments for invoking getLbRoute. */ export interface GetLbRouteOutputArgs { /** * The route id. */ routeId: pulumi.Input<string>; }