import * as pulumi from "@pulumi/pulumi"; /** * Provides a Cloudflare WAF rule resource for a particular zone. This can be used to configure firewall behaviour for pre-defined firewall rules. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as cloudflare from "@pulumi/cloudflare"; * * const rule100000 = new cloudflare.WafRule("rule_100000", { * mode: "simulate", * ruleId: "100000", * zoneId: "ae36f999674d196762efcc5abb06b345", * }); * ``` * * ## Import * * Rules can be imported using a composite ID formed of zone ID and the WAF Rule ID, e.g. * * ```sh * $ pulumi import cloudflare:index/wafRule:WafRule 100000 ae36f999674d196762efcc5abb06b345/100000 * ``` */ export declare class WafRule extends pulumi.CustomResource { /** * Get an existing WafRule 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?: WafRuleState, opts?: pulumi.CustomResourceOptions): WafRule; /** * Returns true if the given object is an instance of WafRule. 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 WafRule; /** * The ID of the WAF Rule Group that contains the rule. */ readonly groupId: pulumi.Output; /** * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type. */ readonly mode: pulumi.Output; /** * The ID of the WAF Rule Package that contains the rule. */ readonly packageId: pulumi.Output; /** * The WAF Rule ID. */ readonly ruleId: pulumi.Output; /** * The DNS zone ID to apply to. */ readonly zoneId: pulumi.Output; /** * Create a WafRule 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: WafRuleArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering WafRule resources. */ export interface WafRuleState { /** * The ID of the WAF Rule Group that contains the rule. */ groupId?: pulumi.Input; /** * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type. */ mode?: pulumi.Input; /** * The ID of the WAF Rule Package that contains the rule. */ packageId?: pulumi.Input; /** * The WAF Rule ID. */ ruleId?: pulumi.Input; /** * The DNS zone ID to apply to. */ zoneId?: pulumi.Input; } /** * The set of arguments for constructing a WafRule resource. */ export interface WafRuleArgs { /** * The mode of the rule, can be one of ["block", "challenge", "default", "disable", "simulate"] or ["on", "off"] depending on the WAF Rule type. */ mode: pulumi.Input; /** * The ID of the WAF Rule Package that contains the rule. */ packageId?: pulumi.Input; /** * The WAF Rule ID. */ ruleId: pulumi.Input; /** * The DNS zone ID to apply to. */ zoneId: pulumi.Input; }