getWafPackages

Use this data source to look up WAF Rule Packages.

Example Usage

The example below matches all high sensitivity WAF Rule Packages, with a challenge action mode and an anomaly detection mode, that contain the word example. The matched WAF Rule Packages are then returned as output.

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.cloudflare.CloudflareFunctions;
import com.pulumi.cloudflare.inputs.GetWafPackagesArgs;
import com.pulumi.cloudflare.inputs.GetWafPackagesFilterArgs;
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) {
final var test = CloudflareFunctions.getWafPackages(GetWafPackagesArgs.builder()
.filter(GetWafPackagesFilterArgs.builder()
.name(".*example.*")
.detectionMode("anomaly")
.sensitivity("high")
.actionMode("challenge")
.build())
.build());
ctx.export("wafPackages", test.applyValue(getWafPackagesResult -> getWafPackagesResult.packages()));
}
}

Return

A collection of values returned by getWafPackages.

Parameters

argument

A collection of arguments for invoking getWafPackages.


suspend fun getWafPackages(filter: GetWafPackagesFilter? = null, zoneId: String): GetWafPackagesResult

Return

A collection of values returned by getWafPackages.

Parameters

filter

One or more values used to look up WAF Rule Packages. If more than one value is given all values must match in order to be included, see below for full list.

zoneId

The ID of the DNS zone in which to search for the WAF Rule Packages.

See also


Return

A collection of values returned by getWafPackages.

Parameters

argument

Builder for com.pulumi.cloudflare.kotlin.inputs.GetWafPackagesPlainArgs.

See also