import * as pulumi from "@pulumi/pulumi"; /** * Creates and manages Scaleway Load Balancer routes. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/network/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 * * ### With SNI for direction to TCP backends * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const ip01 = new scaleway.LbIp("ip01", {}); * const lb01 = new scaleway.Lb("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LbBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LbFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const rt01 = new scaleway.LbRoute("rt01", { * frontendId: frt01.id, * backendId: bkd01.id, * matchSni: "sni.scaleway.com", * }); * ``` * * ### With host-header for direction to HTTP backends * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const ip01 = new scaleway.LbIp("ip01", {}); * const lb01 = new scaleway.Lb("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LbBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "http", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LbFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const rt01 = new scaleway.LbRoute("rt01", { * frontendId: frt01.id, * backendId: bkd01.id, * matchHostHeader: "host.scaleway.com", * }); * ``` * * ## Import * * Load Balancer frontends can be imported using `{zone}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/lbRoute:LbRoute main fr-par-1/11111111-1111-1111-1111-111111111111 * ``` */ export declare class LbRoute extends pulumi.CustomResource { /** * Get an existing LbRoute resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: LbRouteState, opts?: pulumi.CustomResourceOptions): LbRoute; /** * Returns true if the given object is an instance of LbRoute. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is LbRoute; /** * The ID of the backend the route is associated with. */ readonly backendId: pulumi.Output; /** * The date on which the route was created. */ readonly createdAt: pulumi.Output; /** * The ID of the frontend the route is associated with. */ readonly frontendId: pulumi.Output; /** * The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on HTTP Load Balancers. */ readonly matchHostHeader: pulumi.Output; /** * The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on TCP Load Balancers. */ readonly matchSni: pulumi.Output; /** * The date on which the route was last updated. */ readonly updatedAt: pulumi.Output; /** * Create a LbRoute resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: LbRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering LbRoute resources. */ export interface LbRouteState { /** * The ID of the backend the route is associated with. */ backendId?: pulumi.Input; /** * The date on which the route was created. */ createdAt?: pulumi.Input; /** * The ID of the frontend the route is associated with. */ frontendId?: pulumi.Input; /** * The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on HTTP Load Balancers. */ matchHostHeader?: pulumi.Input; /** * The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on TCP Load Balancers. */ matchSni?: pulumi.Input; /** * The date on which the route was last updated. */ updatedAt?: pulumi.Input; } /** * The set of arguments for constructing a LbRoute resource. */ export interface LbRouteArgs { /** * The ID of the backend the route is associated with. */ backendId: pulumi.Input; /** * The ID of the frontend the route is associated with. */ frontendId: pulumi.Input; /** * The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on HTTP Load Balancers. */ matchHostHeader?: pulumi.Input; /** * The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. * Only one of `matchSni` and `matchHostHeader` should be specified. * * > **Important:** This field should be set for routes on TCP Load Balancers. */ matchSni?: pulumi.Input; }