import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * The forwarding rule directs requests for specified domain names and URLs to the designated backend server group. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcenginecc from "@volcengine/pulumi-volcenginecc"; * * const ruleDemo = new volcenginecc.clb.Rule("RuleDemo", { * listenerId: "lsn-13****", * description: "RuleDemo Example", * domain: "www.***.com", * actionType: "Forward", * serverGroupId: "rsp-mj***", * url: "/co3cee", * tags: [{ * key: "env", * value: "test", * }], * }); * ``` * * ## Import * * ```sh * $ pulumi import volcenginecc:clb/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 action. Options: Forward: Forward to. Redirect: Redirect to. */ readonly actionType: pulumi.Output; /** * Description of the forwarding rule. Default value is an empty string. Specifications: Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length must be between 0 and 255 characters. */ readonly description: pulumi.Output; /** * Domain name of the forwarding rule. */ readonly domain: pulumi.Output; /** * Listener ID. */ readonly listenerId: pulumi.Output; /** * Redirection-related configuration information. */ readonly redirectConfig: pulumi.Output; /** * Forwarding rule ID. */ readonly ruleId: pulumi.Output; /** * ID of the backend server group associated with the forwarding rule. */ readonly serverGroupId: pulumi.Output; readonly tags: pulumi.Output; /** * URL of the forwarding rule. */ 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 action. Options: Forward: Forward to. Redirect: Redirect to. */ actionType?: pulumi.Input; /** * Description of the forwarding rule. Default value is an empty string. Specifications: Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length must be between 0 and 255 characters. */ description?: pulumi.Input; /** * Domain name of the forwarding rule. */ domain?: pulumi.Input; /** * Listener ID. */ listenerId?: pulumi.Input; /** * Redirection-related configuration information. */ redirectConfig?: pulumi.Input; /** * Forwarding rule ID. */ ruleId?: pulumi.Input; /** * ID of the backend server group associated with the forwarding rule. */ serverGroupId?: pulumi.Input; tags?: pulumi.Input[]>; /** * URL of the forwarding rule. */ url?: pulumi.Input; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Forwarding rule action. Options: Forward: Forward to. Redirect: Redirect to. */ actionType?: pulumi.Input; /** * Description of the forwarding rule. Default value is an empty string. Specifications: Must start with a letter, number, or Chinese character. Can include letters, numbers, Chinese characters, and the following special characters: comma (,), period (.), underscore (_), space ( ), equals sign (=), hyphen (-), Chinese comma (,), Chinese period (。). Length must be between 0 and 255 characters. */ description?: pulumi.Input; /** * Domain name of the forwarding rule. */ domain?: pulumi.Input; /** * Listener ID. */ listenerId: pulumi.Input; /** * Redirection-related configuration information. */ redirectConfig?: pulumi.Input; /** * ID of the backend server group associated with the forwarding rule. */ serverGroupId?: pulumi.Input; tags?: pulumi.Input[]>; /** * URL of the forwarding rule. */ url?: pulumi.Input; }