import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * GTM routing rule resource, which defines the address pool set, health checks, and effective policies for a specific line. * * ## Import * * ```sh * $ pulumi import volcenginecc:gtm/rule:Rule example "gtm_id|policy_type|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; /** * Route rule creation time. */ readonly createTime: pulumi.Output; /** * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled. */ readonly disable: pulumi.Output; /** * Index of the effective address pool set. */ readonly effectivePoolSetIndex: pulumi.Output; /** * UUID of the GTM instance. */ readonly gtmId: pulumi.Output; /** * Route rule applicable lines. */ readonly line: pulumi.Output; /** * Route rule name. */ readonly name: pulumi.Output; /** * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing. */ readonly policyType: pulumi.Output; /** * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter. */ readonly poolSetMode: pulumi.Output; readonly poolSets: pulumi.Output; /** * Health check parameters for the route rule. */ readonly probe: pulumi.Output; /** * Health check mode. */ readonly probeMode: pulumi.Output; /** * Route rule remarks. */ readonly remark: pulumi.Output; /** * Routing rule ID. */ readonly ruleId: pulumi.Output; /** * Route rule update time. */ readonly updateTime: pulumi.Output; /** * Whether to inherit instance-level health check nodes. */ readonly usePolicyProbeNodes: pulumi.Output; /** * Whether to use route rule-level probe configuration. */ readonly useRuleProbeConfig: pulumi.Output; /** * Routing rule weight. */ readonly weight: 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 { /** * Route rule creation time. */ createTime?: pulumi.Input; /** * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled. */ disable?: pulumi.Input; /** * Index of the effective address pool set. */ effectivePoolSetIndex?: pulumi.Input; /** * UUID of the GTM instance. */ gtmId?: pulumi.Input; /** * Route rule applicable lines. */ line?: pulumi.Input; /** * Route rule name. */ name?: pulumi.Input; /** * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing. */ policyType?: pulumi.Input; /** * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter. */ poolSetMode?: pulumi.Input; poolSets?: pulumi.Input[]>; /** * Health check parameters for the route rule. */ probe?: pulumi.Input; /** * Health check mode. */ probeMode?: pulumi.Input; /** * Route rule remarks. */ remark?: pulumi.Input; /** * Routing rule ID. */ ruleId?: pulumi.Input; /** * Route rule update time. */ updateTime?: pulumi.Input; /** * Whether to inherit instance-level health check nodes. */ usePolicyProbeNodes?: pulumi.Input; /** * Whether to use route rule-level probe configuration. */ useRuleProbeConfig?: pulumi.Input; /** * Routing rule weight. */ weight?: pulumi.Input; } /** * The set of arguments for constructing a Rule resource. */ export interface RuleArgs { /** * Whether this route rule is disabled. true: The route rule is disabled. false: The route rule is enabled. */ disable?: pulumi.Input; /** * Index of the effective address pool set. */ effectivePoolSetIndex?: pulumi.Input; /** * UUID of the GTM instance. */ gtmId: pulumi.Input; /** * Route rule applicable lines. */ line?: pulumi.Input; /** * Route rule name. */ name: pulumi.Input; /** * The policy type corresponding to the routing rule. geo: basic routing. perf: intelligent routing. */ policyType: pulumi.Input; /** * Address pool set effective mode. auto: Automatically sets the effective address pool set. The highest-priority available address pool becomes effective automatically. If all address pools are unavailable, the highest-priority address pool becomes effective. manual: Manually sets the effective address pool set. In this mode, you need to set the index of the effective address pool set in the EffectivePoolSetIndex parameter. */ poolSetMode?: pulumi.Input; poolSets?: pulumi.Input[]>; /** * Health check parameters for the route rule. */ probe?: pulumi.Input; /** * Route rule remarks. */ remark?: pulumi.Input; /** * Whether to inherit instance-level health check nodes. */ usePolicyProbeNodes?: pulumi.Input; /** * Whether to use route rule-level probe configuration. */ useRuleProbeConfig?: pulumi.Input; /** * Routing rule weight. */ weight?: pulumi.Input; }