Creates a RegexPatternSet
. You then use UpdateRegexPatternSet to
specify the regular expression (regex) pattern that you want AWS WAF to
search for, such as B\[a@\]dB\[o0\]t
. You can then configure AWS
WAF to reject those requests.
wafregional_create_regex_pattern_set(Name, ChangeToken)
[required] A friendly name or description of the RegexPatternSet. You can't change
Name
after you create a RegexPatternSet
.
[required] The value returned by the most recent call to GetChangeToken.
svc$create_regex_pattern_set( Name = "string", ChangeToken = "string" )
To create and configure a RegexPatternSet
, perform the following
steps:
Use GetChangeToken to get the change token that you provide in the
ChangeToken
parameter of a CreateRegexPatternSet
request.
Submit a CreateRegexPatternSet
request.
Use GetChangeToken
to get the change token that you provide in the
ChangeToken
parameter of an UpdateRegexPatternSet
request.
Submit an UpdateRegexPatternSet request to specify the string that you want AWS WAF to watch for.
For more information about how to use the AWS WAF API to allow or block HTTP requests, see the AWS WAF Developer Guide.