RegexMatchSet

class RegexMatchSet : KotlinCustomResource

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

WAF Regex Match Set can be imported using their ID, e.g.,

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

Properties

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN)

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name or description of the Regex Match Set.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
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.

Link copied to clipboard
val urn: Output<String>