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

TitleIDTypeData TypeDescription
_keycorestring
account_idcorestring
arncorestringThe Amazon Resource Name (ARN) of the entity.
descriptioncorestringA description of the set that helps with identification.
idcorestringA 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_tokencorestringA 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.
namecorestringThe name of the set. You cannot change the name after you create the set.
regular_expression_listcorejsonThe regular expression patterns in the set.
tagscorehstore