import * as pulumi from "@pulumi/pulumi"; /** * Manage rules for TCP route. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const reject = new ovh.iploadbalancing.TcpRoute("reject", { * serviceName: "loadbalancer-xxxxxxxxxxxxxxxxxx", * weight: 1, * frontendId: 11111, * action: { * type: "reject", * }, * }); * const exampleRule = new ovh.iploadbalancing.TcpRouteRule("example_rule", { * serviceName: "loadbalancer-xxxxxxxxxxxxxxxxxx", * routeId: reject.id, * displayName: "Match example.com host", * field: "sni", * match: "is", * negate: false, * pattern: "example.com", * }); * ``` * * ## Import * * TCP route rule can be imported using the following format `service_name`, the `id` of the route and the `id` of the rule separated by "/" e.g. * * bash * * ```sh * $ pulumi import ovh:IpLoadBalancing/tcpRouteRule:TcpRouteRule examplerule service_name/route_id/rule_id * ``` */ export declare class TcpRouteRule extends pulumi.CustomResource { /** * Get an existing TcpRouteRule 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?: TcpRouteRuleState, opts?: pulumi.CustomResourceOptions): TcpRouteRule; /** * Returns true if the given object is an instance of TcpRouteRule. 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 TcpRouteRule; /** * Human readable name for your rule, this field is for you */ readonly displayName: pulumi.Output; /** * Name of the field to match like "protocol" or "host". See "/ipLoadbalancing/{serviceName}/availableRouteRules" for a list of available rules */ readonly field: pulumi.Output; /** * Matching operator. Not all operators are available for all fields. See "/ipLoadbalancing/{serviceName}/availableRouteRules" */ readonly match: pulumi.Output; /** * Invert the matching operator effect */ readonly negate: pulumi.Output; /** * Value to match against this match. Interpretation if this field depends on the match and field */ readonly pattern: pulumi.Output; /** * The route to apply this rule */ readonly routeId: pulumi.Output; /** * The internal name of your IP load balancing */ readonly serviceName: pulumi.Output; /** * Name of sub-field, if applicable. This may be a Cookie or Header name for instance */ readonly subField: pulumi.Output; /** * Create a TcpRouteRule 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: TcpRouteRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering TcpRouteRule resources. */ export interface TcpRouteRuleState { /** * Human readable name for your rule, this field is for you */ displayName?: pulumi.Input; /** * Name of the field to match like "protocol" or "host". See "/ipLoadbalancing/{serviceName}/availableRouteRules" for a list of available rules */ field?: pulumi.Input; /** * Matching operator. Not all operators are available for all fields. See "/ipLoadbalancing/{serviceName}/availableRouteRules" */ match?: pulumi.Input; /** * Invert the matching operator effect */ negate?: pulumi.Input; /** * Value to match against this match. Interpretation if this field depends on the match and field */ pattern?: pulumi.Input; /** * The route to apply this rule */ routeId?: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName?: pulumi.Input; /** * Name of sub-field, if applicable. This may be a Cookie or Header name for instance */ subField?: pulumi.Input; } /** * The set of arguments for constructing a TcpRouteRule resource. */ export interface TcpRouteRuleArgs { /** * Human readable name for your rule, this field is for you */ displayName?: pulumi.Input; /** * Name of the field to match like "protocol" or "host". See "/ipLoadbalancing/{serviceName}/availableRouteRules" for a list of available rules */ field: pulumi.Input; /** * Matching operator. Not all operators are available for all fields. See "/ipLoadbalancing/{serviceName}/availableRouteRules" */ match: pulumi.Input; /** * Invert the matching operator effect */ negate?: pulumi.Input; /** * Value to match against this match. Interpretation if this field depends on the match and field */ pattern?: pulumi.Input; /** * The route to apply this rule */ routeId: pulumi.Input; /** * The internal name of your IP load balancing */ serviceName: pulumi.Input; /** * Name of sub-field, if applicable. This may be a Cookie or Header name for instance */ subField?: pulumi.Input; }