FieldToProtect
¶
Source code in docs_src/capo_wafv2/types/field_to_protect.py
field_keys
instance-attribute
¶
field_keys: NotRequired[FieldToProtectKeys]
Specifies the keys to protect for the specified field type.
Required for SINGLE_HEADER, SINGLE_COOKIE, and SINGLE_QUERY_ARGUMENT: provide a non-empty array naming the specific headers, cookies, or query arguments to protect. There is no option to protect all keys of these field types, so enumerate each key you intend to protect.
Must be omitted for QUERY_STRING and BODY: the entire component is protected and these field types take no keys. Supplying FieldKeys for them is rejected.
field_type
instance-attribute
¶
field_type: FieldToProtectType
Specifies the web request component type to protect.