---
title: WAF Regex Pattern Set
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > WAF Regex Pattern Set
---

# WAF Regex Pattern Set

An AWS WAF Regex Pattern Set is a reusable collection of regular expression patterns that you can reference in WAF rules. It allows you to define complex string-matching conditions for filtering web requests, such as blocking or allowing traffic based on specific text patterns in headers, query strings, or URIs. This helps improve security by enabling fine-grained control over request inspection.

```
aws.wafv2_regex_pattern_set
```

## Fields

| Title                   | ID   | Type       | Data Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Description |
| ----------------------- | ---- | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------- |
| _key                    | core | string     |
| account_id              | core | string     |
| arn                     | core | string     | The Amazon Resource Name (ARN) of the entity.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| description             | core | string     | A description of the set that helps with identification.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| id                      | core | string     | A unique identifier for the set. This ID is returned in the responses to create and list commands. You provide it to operations like update and delete.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| lock_token              | core | string     | A token used for optimistic locking. WAF returns a token to your <code>get</code> and <code>list</code> requests, to mark the state of the entity at the time of the request. To make changes to the entity associated with the token, you provide the token to operations like <code>update</code> and <code>delete</code>. WAF uses the token to ensure that no changes have been made to the entity since you last retrieved it. If a change has been made, the update fails with a <code>WAFOptimisticLockException</code>. If this happens, perform another <code>get</code>, and use the new token returned by that operation. |
| name                    | core | string     | The name of the set. You cannot change the name after you create the set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| regular_expression_list | core | json       | The regular expression patterns in the set.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| tags                    | core | hstore_csv |
