HeaderMatchPattern - AWS WAFV2

HeaderMatchPattern

The filter to use to identify the subset of headers to inspect in a web request.

You must specify exactly one setting: either All, IncludedHeaders, or ExcludedHeaders.

Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }

Contents

All

Inspect all headers.

Type: All object

Required: No

ExcludedHeaders

Inspect only the headers whose keys don't match any of the strings specified here.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 199 items.

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: .*\S.*

Required: No

IncludedHeaders

Inspect only the headers that have a key that matches one of the strings specified here.

Type: Array of strings

Array Members: Minimum number of 1 item. Maximum number of 199 items.

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: .*\S.*

Required: No

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: