Regex Match Set Args
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());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(name: Output<String>? = null, regexMatchTuples: Output<List<RegexMatchSetRegexMatchTupleArgs>>? = null)