

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::WAFv2::WebACL Regex
<a name="aws-properties-wafv2-webacl-regex"></a>

A single regular expression. This is used in a [AWS::WAFv2::RegexPatternSet](aws-resource-wafv2-regexpatternset.md) and also in the configuration for the AWS Managed Rules rule group `AWSManagedRulesAntiDDoSRuleSet`.

## Syntax
<a name="aws-properties-wafv2-webacl-regex-syntax"></a>

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

### JSON
<a name="aws-properties-wafv2-webacl-regex-syntax.json"></a>

```
{
  "[RegexString](#cfn-wafv2-webacl-regex-regexstring)" : {{String}}
}
```

### YAML
<a name="aws-properties-wafv2-webacl-regex-syntax.yaml"></a>

```
  [RegexString](#cfn-wafv2-webacl-regex-regexstring): {{
    String}}
```

## Properties
<a name="aws-properties-wafv2-webacl-regex-properties"></a>

`RegexString`  <a name="cfn-wafv2-webacl-regex-regexstring"></a>
The string representing the regular expression.  
*Required*: No  
*Type*: String  
*Minimum*: `1`  
*Maximum*: `512`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)