RegexMatchSetArgs

data class RegexMatchSetArgs(val name: Output<String>? = null, val regexMatchTuples: Output<List<RegexMatchSetRegexMatchTupleArgs>>? = null) : ConvertibleToJava<RegexMatchSetArgs>

Provides a WAF Regex Match Set Resource

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.waf.RegexPatternSet;
import com.pulumi.aws.waf.RegexPatternSetArgs;
import com.pulumi.aws.waf.RegexMatchSet;
import com.pulumi.aws.waf.RegexMatchSetArgs;
import com.pulumi.aws.waf.inputs.RegexMatchSetRegexMatchTupleArgs;
import com.pulumi.aws.waf.inputs.RegexMatchSetRegexMatchTupleFieldToMatchArgs;
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 exampleRegexPatternSet = new RegexPatternSet("exampleRegexPatternSet", RegexPatternSetArgs.builder()
.regexPatternStrings(
"one",
"two")
.build());
var exampleRegexMatchSet = new RegexMatchSet("exampleRegexMatchSet", RegexMatchSetArgs.builder()
.regexMatchTuples(RegexMatchSetRegexMatchTupleArgs.builder()
.fieldToMatch(RegexMatchSetRegexMatchTupleFieldToMatchArgs.builder()
.data("User-Agent")
.type("HEADER")
.build())
.regexPatternSetId(exampleRegexPatternSet.id())
.textTransformation("NONE")
.build())
.build());
}
}

Import

Using pulumi import, import WAF Regex Match Set using their ID. For example:

$ pulumi import aws:waf/regexMatchSet:RegexMatchSet example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc

Constructors

Link copied to clipboard
fun RegexMatchSetArgs(name: Output<String>? = null, regexMatchTuples: Output<List<RegexMatchSetRegexMatchTupleArgs>>? = null)

Functions

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

Properties

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

The name or description of the Regex Match Set.

Link copied to clipboard

The regular expression pattern that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings. See below.