WafOverrideArgs

data class WafOverrideArgs(val description: Output<String>? = null, val groups: Output<Map<String, String>>? = null, val paused: Output<Boolean>? = null, val priority: Output<Int>? = null, val rewriteAction: Output<Map<String, String>>? = null, val rules: Output<Map<String, String>>? = null, val urls: Output<List<String>>? = null, val zoneId: Output<String>? = null) : ConvertibleToJava<WafOverrideArgs>

Provides a Cloudflare WAF override resource. This enables the ability to toggle WAF rules and groups on or off based on URIs.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.WafOverride;
import com.pulumi.cloudflare.WafOverrideArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var shopEcxample = new WafOverride("shopEcxample", WafOverrideArgs.builder()
.zoneId("1d5fdc9e88c8a8c4518b068cd94331fe")
.urls(
"example.com/no-waf-here",
"example.com/another/path/*")
.rules(Map.of("100015", "disable"))
.groups(Map.of("ea8687e59929c1fd05ba97574ad43f77", "default"))
.rewriteAction(Map.ofEntries(
Map.entry("default", "block"),
Map.entry("challenge", "block")
))
.build());
}
}

Import

WAF Overrides can be imported using a composite ID formed of zone ID and override ID.

$ pulumi import cloudflare:index/wafOverride:WafOverride my_example_waf_override 3abe5b950053dbddf1516d89f9ef1e8a/9d4e66d7649c178663bf62e06dbacb23

Constructors

Link copied to clipboard
constructor(description: Output<String>? = null, groups: Output<Map<String, String>>? = null, paused: Output<Boolean>? = null, priority: Output<Int>? = null, rewriteAction: Output<Map<String, String>>? = null, rules: Output<Map<String, String>>? = null, urls: Output<List<String>>? = null, zoneId: Output<String>? = null)

Properties

Link copied to clipboard
val description: Output<String>? = null

Description of what the WAF override does.

Link copied to clipboard
val groups: Output<Map<String, String>>? = null

Similar to rules; which WAF groups you want to alter.

Link copied to clipboard
val paused: Output<Boolean>? = null

Whether this package is currently paused.

Link copied to clipboard
val priority: Output<Int>? = null

Relative priority of this configuration when multiple configurations match a single URL.

Link copied to clipboard
val rewriteAction: Output<Map<String, String>>? = null

When a WAF rule matches, substitute its configured action for a different action specified by this definition.

Link copied to clipboard
val rules: Output<Map<String, String>>? = null

A list of WAF rule ID to rule action you intend to apply.

Link copied to clipboard
val urls: Output<List<String>>? = null

An array of URLs to apply the WAF override to.

Link copied to clipboard
val zoneId: Output<String>? = null

The DNS zone to which the WAF override condition should be added. */

Functions

Link copied to clipboard
open override fun toJava(): WafOverrideArgs