AWS::WAFRegional::RegexPatternSet - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).


The RegexPatternSet specifies the regular expression (regex) pattern that you want Amazon WAF to search for, such as B[a@]dB[o0]t. You can then configure Amazon WAF to reject those requests.

Note that you can only create regex pattern sets using a Amazon CloudFormation template. To add the regex pattern sets created through Amazon CloudFormation to a RegexMatchSet, use the Amazon WAF console, API, or command line interface (CLI). For more information, see UpdateRegexMatchSet.


To declare this entity in your Amazon CloudFormation template, use the following syntax:


{ "Type" : "AWS::WAFRegional::RegexPatternSet", "Properties" : { "Name" : String, "RegexPatternStrings" : [ String, ... ] } }


Type: AWS::WAFRegional::RegexPatternSet Properties: Name: String RegexPatternStrings: - String



A friendly name or description of the AWS::WAFRegional::RegexPatternSet. You can't change Name after you create a RegexPatternSet.

Required: Yes

Type: String

Pattern: .*\S.*

Minimum: 1

Maximum: 128

Update requires: Replacement


Specifies the regular expression (regex) patterns that you want Amazon WAF to search for, such as B[a@]dB[o0]t.

Required: Yes

Type: Array of String

Maximum: 10

Update requires: No interruption

Return values


When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the resource physical ID, such as 1234a1a-a1b1-12a1-abcd-a123b123456.

For more information about using the Ref function, see Ref.