import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * Manage HTTP route for a loadbalancer service * * ## Example Usage * * Route which redirect all url to https. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const httpsRedirect = new ovh.iploadbalancing.HttpRoute("https_redirect", { * serviceName: "loadbalancer-xxxxxxxxxxxxxxxxxx", * displayName: "Redirect to HTTPS", * weight: 1, * action: { * status: 302, * target: "https://${host}${path}${arguments}", * type: "redirect", * }, * }); * ``` * * ## Import * * HTTP route can be imported using the following format `service_name` and the `id` of the route separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/httpRoute:HttpRoute httpsredirect service_name/route_id * ``` */ export declare class HttpRoute extends pulumi.CustomResource { /** * Get an existing HttpRoute 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?: HttpRouteState, opts?: pulumi.CustomResourceOptions): HttpRoute; /** * Returns true if the given object is an instance of HttpRoute. 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 HttpRoute; /** * Action triggered when all rules match */ readonly action: pulumi.Output; /** * Human readable name for your route, this field is for you */ readonly displayName: pulumi.Output; /** * Route traffic for this frontend */ readonly frontendId: pulumi.Output; /** * List of rules to match to trigger action */ readonly rules: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * Route status. Routes in "ok" state are ready to operate */ readonly status: pulumi.Output; /** * Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action */ readonly weight: pulumi.Output; /** * Create a HttpRoute 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: HttpRouteArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering HttpRoute resources. */ export interface HttpRouteState { /** * Action triggered when all rules match */ action?: pulumi.Input; /** * Human readable name for your route, this field is for you */ displayName?: pulumi.Input; /** * Route traffic for this frontend */ frontendId?: pulumi.Input; /** * List of rules to match to trigger action */ rules?: pulumi.Input[]>; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * Route status. Routes in "ok" state are ready to operate */ status?: pulumi.Input; /** * Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action */ weight?: pulumi.Input; } /** * The set of arguments for constructing a HttpRoute resource. */ export interface HttpRouteArgs { /** * Action triggered when all rules match */ action: pulumi.Input; /** * Human readable name for your route, this field is for you */ displayName?: pulumi.Input; /** * Route traffic for this frontend */ frontendId?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * Route priority ([0..255]). 0 if null. Highest priority routes are evaluated first. Only the first matching route will trigger an action */ weight?: pulumi.Input; }