import * as pulumi from "@pulumi/pulumi";
/**
 * Manages a forward rule resource of Advanced Anti-DDos service within HuaweiCloud.
 *
 * ## Import
 *
 * Rule can be imported using the `id` (combination of `instance_id`, `ip`, `forward_protocol` and `forward_port`), separated by slashes (/), e.g. bash
 *
 * ```sh
 *  $ pulumi import huaweicloud:AdvancedAntiDDos/forwardRule:ForwardRule test <instance_id>/<ip>/<forward_protocol>/<forward_port>
 * ```
 */
export declare class ForwardRule extends pulumi.CustomResource {
    /**
     * Get an existing ForwardRule 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<pulumi.ID>, state?: ForwardRuleState, opts?: pulumi.CustomResourceOptions): ForwardRule;
    /**
     * Returns true if the given object is an instance of ForwardRule.  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 ForwardRule;
    /**
     * Specifies the forward port.
     * The valid value is range from `1` to `65,535`.
     */
    readonly forwardPort: pulumi.Output<number>;
    /**
     * Specifies the forward protocol.
     * The valid values are **tcp** and **udp**.
     */
    readonly forwardProtocol: pulumi.Output<string>;
    /**
     * Specifies the ID of advanced Anti-DDoS instance.
     * Changing this will create a new rule resource.
     */
    readonly instanceId: pulumi.Output<string>;
    /**
     * Specifies the public IP address to which Advanced Anti-DDoS instance
     * belongs. Changing this will create a new rule resource.
     */
    readonly ip: pulumi.Output<string>;
    /**
     * The LVS forward policy.
     */
    readonly lbMethod: pulumi.Output<string>;
    /**
     * schema: Deprecated
     */
    readonly ruleId: pulumi.Output<string>;
    /**
     * Specifies the source IP addresses, separated by commas (,).
     */
    readonly sourceIp: pulumi.Output<string>;
    /**
     * Specifies the source port.
     * The valid value is range from `1` to `65,535`.
     */
    readonly sourcePort: pulumi.Output<number>;
    /**
     * The status of forward rule.
     */
    readonly status: pulumi.Output<number>;
    /**
     * Create a ForwardRule 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: ForwardRuleArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering ForwardRule resources.
 */
export interface ForwardRuleState {
    /**
     * Specifies the forward port.
     * The valid value is range from `1` to `65,535`.
     */
    forwardPort?: pulumi.Input<number>;
    /**
     * Specifies the forward protocol.
     * The valid values are **tcp** and **udp**.
     */
    forwardProtocol?: pulumi.Input<string>;
    /**
     * Specifies the ID of advanced Anti-DDoS instance.
     * Changing this will create a new rule resource.
     */
    instanceId?: pulumi.Input<string>;
    /**
     * Specifies the public IP address to which Advanced Anti-DDoS instance
     * belongs. Changing this will create a new rule resource.
     */
    ip?: pulumi.Input<string>;
    /**
     * The LVS forward policy.
     */
    lbMethod?: pulumi.Input<string>;
    /**
     * schema: Deprecated
     */
    ruleId?: pulumi.Input<string>;
    /**
     * Specifies the source IP addresses, separated by commas (,).
     */
    sourceIp?: pulumi.Input<string>;
    /**
     * Specifies the source port.
     * The valid value is range from `1` to `65,535`.
     */
    sourcePort?: pulumi.Input<number>;
    /**
     * The status of forward rule.
     */
    status?: pulumi.Input<number>;
}
/**
 * The set of arguments for constructing a ForwardRule resource.
 */
export interface ForwardRuleArgs {
    /**
     * Specifies the forward port.
     * The valid value is range from `1` to `65,535`.
     */
    forwardPort: pulumi.Input<number>;
    /**
     * Specifies the forward protocol.
     * The valid values are **tcp** and **udp**.
     */
    forwardProtocol: pulumi.Input<string>;
    /**
     * Specifies the ID of advanced Anti-DDoS instance.
     * Changing this will create a new rule resource.
     */
    instanceId: pulumi.Input<string>;
    /**
     * Specifies the public IP address to which Advanced Anti-DDoS instance
     * belongs. Changing this will create a new rule resource.
     */
    ip: pulumi.Input<string>;
    /**
     * Specifies the source IP addresses, separated by commas (,).
     */
    sourceIp: pulumi.Input<string>;
    /**
     * Specifies the source port.
     * The valid value is range from `1` to `65,535`.
     */
    sourcePort: pulumi.Input<number>;
}
