import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * ALB distributes incoming traffic based on the forwarding rules you set. You can configure multiple forwarding rules for a single listener. Basic edition ALB instances support forwarding rules based on domain and path. Standard edition ALB instances support forwarding rules based on domain, path, and HTTP headers, and support composite forwarding conditions. * * ## Import * * ```sh * $ pulumi import volcenginecc:alb/rule:Rule example "listener_id|rule_id" * ``` */ export declare class Rule extends pulumi.CustomResource { /** * Get an existing Rule 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?: RuleState, opts?: pulumi.CustomResourceOptions): Rule; /** * Returns true if the given object is an instance of Rule. 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 Rule; /** * Forwarding rule description. */ readonly description: pulumi.Output; /** * Domain name of the forwarding rule. */ readonly domain: pulumi.Output; /** * Forwarding rule server group configuration. */ readonly forwardGroupConfig: pulumi.Output; /** * Listener ID. */ readonly listenerId: pulumi.Output; /** * Standard edition forwarding rule priority. */ readonly priority: pulumi.Output; /** * Redirect-related configuration information. */ readonly redirectConfig: pulumi.Output; /** * Redirect-related configuration information. */ readonly rewriteConfig: pulumi.Output; /** * Forwarding rule rewrite configuration switch. on: enabled. off: disabled. */ readonly rewriteEnabled: pulumi.Output; /** * Forwarding rule action. Empty: default forward to server group. Redirect: redirect. */ readonly ruleAction: pulumi.Output; readonly ruleActions: pulumi.Output; readonly ruleConditions: pulumi.Output; /** * Forwarding rule ID. */ readonly ruleId: pulumi.Output; /** * Backend server group ID associated with the forwarding rule. */ readonly serverGroupId: pulumi.Output; /** * Forwarding rule QPS throttling switch. on: enabled. off: disabled. */ readonly trafficLimitEnabled: pulumi.Output; /** * Requests per second. Range: 100–100000. */ readonly trafficLimitQps: pulumi.Output; /** * Forwarding rule URL. */ readonly url: pulumi.Output; /** * Create a Rule 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: RuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Rule resources. */ export interface RuleState { /** * Forwarding rule description. */ description?: pulumi.Input; /** * Domain name of the forwarding rule. */ domain?: pulumi.Input; /** * Forwarding rule server group configuration. */ forwardGroupConfig?: pulumi.Input; /** * Listener ID. */ listenerId?: pulumi.Input; /** * Standard edition forwarding rule priority. */ priority?: pulumi.Input; /** * Redirect-related configuration information. */ redirectConfig?: pulumi.Input; /** * Redirect-related configuration information. */ rewriteConfig?: pulumi.Input; /** * Forwarding rule rewrite configuration switch. on: enabled. off: disabled. */ rewriteEnabled?: pulumi.Input; /** * Forwarding rule action. Empty: default forward to server group. Redirect: redirect. */ ruleAction?: pulumi.Input; ruleActions?: pulumi.Input[]>; ruleConditions?: pulumi.Input[]>; /** * Forwarding rule ID. */ ruleId?: pulumi.Input; /** * Backend server group ID associated with the forwarding rule. */ serverGroupId?: pulumi.Input; /** * Forwarding rule QPS throttling switch. on: enabled. off: disabled. */ trafficLimitEnabled?: pulumi.Input; /** * Requests per second. Range: 100–100000. */ trafficLimitQps?: pulumi.Input; /** * Forwarding rule URL. */ url?: pulumi.Input; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Forwarding rule description. */ description?: pulumi.Input; /** * Domain name of the forwarding rule. */ domain?: pulumi.Input; /** * Forwarding rule server group configuration. */ forwardGroupConfig?: pulumi.Input; /** * Listener ID. */ listenerId: pulumi.Input; /** * Standard edition forwarding rule priority. */ priority?: pulumi.Input; /** * Redirect-related configuration information. */ redirectConfig?: pulumi.Input; /** * Redirect-related configuration information. */ rewriteConfig?: pulumi.Input; /** * Forwarding rule rewrite configuration switch. on: enabled. off: disabled. */ rewriteEnabled?: pulumi.Input; /** * Forwarding rule action. Empty: default forward to server group. Redirect: redirect. */ ruleAction?: pulumi.Input; ruleActions?: pulumi.Input[]>; ruleConditions?: pulumi.Input[]>; /** * Backend server group ID associated with the forwarding rule. */ serverGroupId?: pulumi.Input; /** * Forwarding rule QPS throttling switch. on: enabled. off: disabled. */ trafficLimitEnabled?: pulumi.Input; /** * Requests per second. Range: 100–100000. */ trafficLimitQps?: pulumi.Input; /** * Forwarding rule URL. */ url?: pulumi.Input; }