paws.security.identity (version 0.1.0)

wafregional_create_regex_pattern_set: Creates a RegexPatternSet

Description

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.

Usage

wafregional_create_regex_pattern_set(Name, ChangeToken)

Arguments

Name

[required] A friendly name or description of the RegexPatternSet. You can't change Name after you create a RegexPatternSet.

ChangeToken

[required] The value returned by the most recent call to GetChangeToken.

Request syntax

svc$create_regex_pattern_set(
  Name = "string",
  ChangeToken = "string"
)

Details

To create and configure a RegexPatternSet, perform the following steps:

  1. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of a CreateRegexPatternSet request.

  2. Submit a CreateRegexPatternSet request.

  3. Use GetChangeToken to get the change token that you provide in the ChangeToken parameter of an UpdateRegexPatternSet request.

  4. 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.