import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
 * !> **Note:** This deploys an Azure Front Door (classic) resource which has been deprecated and will receive security updates only. Please migrate your existing Azure Front Door (classic) deployments to the new Azure Front Door (standard/premium) resources. For your convenience, the service team has exposed a `Front Door Classic` to `Front Door Standard/Premium` [migration tool](https://learn.microsoft.com/azure/frontdoor/tier-migration) to allow you to migrate your existing `Front Door Classic` instances to the new `Front Door Standard/Premium` product tiers.
 *
 * !> **Note:** The creation of new Azure Front Door (classic) resources is no longer supported following its deprecation on `April 1, 2025`. However, modifications to existing Azure Front Door (classic) resources will continue to be supported until the API reaches full retirement on `March 31, 2027`.
 *
 * Manages an Azure Front Door (classic) Rules Engine configuration and rules.
 *
 * ## Example Usage
 *
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 *
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-rg",
 *     location: "West Europe",
 * });
 * const exampleFrontdoor = new azure.frontdoor.Frontdoor("example", {
 *     name: "example",
 *     resourceGroupName: example.name,
 *     backendPools: [{
 *         name: "exampleBackendBing",
 *         loadBalancingName: "exampleLoadBalancingSettings1",
 *         healthProbeName: "exampleHealthProbeSetting1",
 *         backends: [{
 *             hostHeader: "www.bing.com",
 *             address: "www.bing.com",
 *             httpPort: 80,
 *             httpsPort: 443,
 *         }],
 *     }],
 *     backendPoolHealthProbes: [{
 *         name: "exampleHealthProbeSetting1",
 *     }],
 *     backendPoolLoadBalancings: [{
 *         name: "exampleLoadBalancingSettings1",
 *     }],
 *     frontendEndpoints: [{
 *         name: "exampleFrontendEndpoint1",
 *         hostName: "example-FrontDoor.azurefd.net",
 *     }],
 *     routingRules: [{
 *         name: "exampleRoutingRule1",
 *         acceptedProtocols: [
 *             "Http",
 *             "Https",
 *         ],
 *         patternsToMatches: ["/*"],
 *         frontendEndpoints: ["exampleFrontendEndpoint1"],
 *     }],
 * });
 * const exampleRulesEngine = new azure.frontdoor.RulesEngine("example_rules_engine", {
 *     name: "exampleRulesEngineConfig1",
 *     frontdoorName: exampleFrontdoor.name,
 *     resourceGroupName: exampleFrontdoor.resourceGroupName,
 *     rules: [
 *         {
 *             name: "debuggingoutput",
 *             priority: 1,
 *             action: {
 *                 responseHeaders: [{
 *                     headerActionType: "Append",
 *                     headerName: "X-TEST-HEADER",
 *                     value: "Append Header Rule",
 *                 }],
 *             },
 *         },
 *         {
 *             name: "overwriteorigin",
 *             priority: 2,
 *             matchConditions: [{
 *                 variable: "RequestMethod",
 *                 operator: "Equal",
 *                 values: [
 *                     "GET",
 *                     "POST",
 *                 ],
 *             }],
 *             action: {
 *                 responseHeaders: [
 *                     {
 *                         headerActionType: "Overwrite",
 *                         headerName: "Access-Control-Allow-Origin",
 *                         value: "*",
 *                     },
 *                     {
 *                         headerActionType: "Overwrite",
 *                         headerName: "Access-Control-Allow-Credentials",
 *                         value: "true",
 *                     },
 *                 ],
 *             },
 *         },
 *     ],
 * });
 * ```
 *
 * ## Import
 *
 * Azure Front Door Rules Engine's can be imported using the `resource id`, e.g.
 *
 * ```sh
 * $ pulumi import azure:frontdoor/rulesEngine:RulesEngine example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.Network/frontdoors/frontdoor1/rulesEngines/rule1
 * ```
 */
export declare class RulesEngine extends pulumi.CustomResource {
    /**
     * Get an existing RulesEngine 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?: RulesEngineState, opts?: pulumi.CustomResourceOptions): RulesEngine;
    /**
     * Returns true if the given object is an instance of RulesEngine.  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 RulesEngine;
    /**
     * Whether this Rules engine configuration is enabled? Defaults to `true`.
     */
    readonly enabled: pulumi.Output<boolean | undefined>;
    /**
     * The name of the Front Door instance. Changing this forces a new resource to be created.
     */
    readonly frontdoorName: pulumi.Output<string>;
    /**
     * The location in which the Front Door Rules Engine exists.
     */
    readonly location: pulumi.Output<string>;
    /**
     * The name of the Rules engine configuration. Changing this forces a new resource to be created.
     */
    readonly name: pulumi.Output<string>;
    /**
     * The name of the resource group. Changing this forces a new resource to be created.
     */
    readonly resourceGroupName: pulumi.Output<string>;
    /**
     * A `rule` block as defined below.
     */
    readonly rules: pulumi.Output<outputs.frontdoor.RulesEngineRule[] | undefined>;
    /**
     * Create a RulesEngine 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: RulesEngineArgs, opts?: pulumi.CustomResourceOptions);
}
/**
 * Input properties used for looking up and filtering RulesEngine resources.
 */
export interface RulesEngineState {
    /**
     * Whether this Rules engine configuration is enabled? Defaults to `true`.
     */
    enabled?: pulumi.Input<boolean | undefined>;
    /**
     * The name of the Front Door instance. Changing this forces a new resource to be created.
     */
    frontdoorName?: pulumi.Input<string | undefined>;
    /**
     * The location in which the Front Door Rules Engine exists.
     */
    location?: pulumi.Input<string | undefined>;
    /**
     * The name of the Rules engine configuration. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group. Changing this forces a new resource to be created.
     */
    resourceGroupName?: pulumi.Input<string | undefined>;
    /**
     * A `rule` block as defined below.
     */
    rules?: pulumi.Input<pulumi.Input<inputs.frontdoor.RulesEngineRule>[] | undefined>;
}
/**
 * The set of arguments for constructing a RulesEngine resource.
 */
export interface RulesEngineArgs {
    /**
     * Whether this Rules engine configuration is enabled? Defaults to `true`.
     */
    enabled?: pulumi.Input<boolean | undefined>;
    /**
     * The name of the Front Door instance. Changing this forces a new resource to be created.
     */
    frontdoorName: pulumi.Input<string>;
    /**
     * The name of the Rules engine configuration. Changing this forces a new resource to be created.
     */
    name?: pulumi.Input<string | undefined>;
    /**
     * The name of the resource group. Changing this forces a new resource to be created.
     */
    resourceGroupName: pulumi.Input<string>;
    /**
     * A `rule` block as defined below.
     */
    rules?: pulumi.Input<pulumi.Input<inputs.frontdoor.RulesEngineRule>[] | undefined>;
}
//# sourceMappingURL=rulesEngine.d.ts.map