import * as pulumi from "@pulumi/pulumi"; /** * Provides a Cloudflare WAF override resource. This enables the ability to toggle * WAF rules and groups on or off based on URIs. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi_cloudflare from "@mapped/pulumi-cloudflare"; * * const shopEcxample = new cloudflare.WafOverride("shopEcxample", { * zoneId: "1d5fdc9e88c8a8c4518b068cd94331fe", * urls: [ * "example.com/no-waf-here", * "example.com/another/path/*", * ], * rules: { * "100015": "disable", * }, * groups: { * ea8687e59929c1fd05ba97574ad43f77: "default", * }, * rewriteAction: { * "default": "block", * challenge: "block", * }, * }); * ``` * * ## Import * * WAF Overrides can be imported using a composite ID formed of zone ID and override ID. * * ```sh * $ pulumi import cloudflare:index/wafOverride:WafOverride my_example_waf_override 3abe5b950053dbddf1516d89f9ef1e8a/9d4e66d7649c178663bf62e06dbacb23 * ``` */ export declare class WafOverride extends pulumi.CustomResource { /** * Get an existing WafOverride 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?: WafOverrideState, opts?: pulumi.CustomResourceOptions): WafOverride; /** * Returns true if the given object is an instance of WafOverride. 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 WafOverride; /** * Description of what the WAF override does. */ readonly description: pulumi.Output; /** * Similar to `rules`; which WAF groups you want to alter. */ readonly groups: pulumi.Output<{ [key: string]: string; } | undefined>; readonly overrideId: pulumi.Output; /** * Whether this package is currently paused. */ readonly paused: pulumi.Output; /** * Relative priority of this configuration when multiple configurations match a single URL. */ readonly priority: pulumi.Output; /** * When a WAF rule matches, substitute its configured action for a different action specified by this definition. */ readonly rewriteAction: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A list of WAF rule ID to rule action you intend to apply. */ readonly rules: pulumi.Output<{ [key: string]: string; } | undefined>; /** * An array of URLs to apply the WAF override to. */ readonly urls: pulumi.Output; /** * The DNS zone to which the WAF override condition should be added. */ readonly zoneId: pulumi.Output; /** * Create a WafOverride 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: WafOverrideArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WafOverride resources. */ export interface WafOverrideState { /** * Description of what the WAF override does. */ description?: pulumi.Input; /** * Similar to `rules`; which WAF groups you want to alter. */ groups?: pulumi.Input<{ [key: string]: pulumi.Input; }>; overrideId?: pulumi.Input; /** * Whether this package is currently paused. */ paused?: pulumi.Input; /** * Relative priority of this configuration when multiple configurations match a single URL. */ priority?: pulumi.Input; /** * When a WAF rule matches, substitute its configured action for a different action specified by this definition. */ rewriteAction?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A list of WAF rule ID to rule action you intend to apply. */ rules?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An array of URLs to apply the WAF override to. */ urls?: pulumi.Input[]>; /** * The DNS zone to which the WAF override condition should be added. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a WafOverride resource. */ export interface WafOverrideArgs { /** * Description of what the WAF override does. */ description?: pulumi.Input; /** * Similar to `rules`; which WAF groups you want to alter. */ groups?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * Whether this package is currently paused. */ paused?: pulumi.Input; /** * Relative priority of this configuration when multiple configurations match a single URL. */ priority?: pulumi.Input; /** * When a WAF rule matches, substitute its configured action for a different action specified by this definition. */ rewriteAction?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A list of WAF rule ID to rule action you intend to apply. */ rules?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * An array of URLs to apply the WAF override to. */ urls: pulumi.Input[]>; /** * The DNS zone to which the WAF override condition should be added. */ zoneId: pulumi.Input; }