Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
Documentation
data JsonMatchPattern Source #
The patterns to look for in the JSON body. WAF inspects the results of
these pattern matches against the rule inspection criteria. This is used
with the FieldToMatch option JsonBody
.
See: newJsonMatchPattern
smart constructor.
JsonMatchPattern' | |
|
Instances
newJsonMatchPattern :: JsonMatchPattern Source #
Create a value of JsonMatchPattern
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:all:JsonMatchPattern'
, jsonMatchPattern_all
- Match all of the elements. See also MatchScope
in JsonBody.
You must specify either this setting or the IncludedPaths
setting, but
not both.
$sel:includedPaths:JsonMatchPattern'
, jsonMatchPattern_includedPaths
- Match only the specified include paths. See also MatchScope
in
JsonBody.
Provide the include paths using JSON Pointer syntax. For example,
"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For
information about this syntax, see the Internet Engineering Task Force
(IETF) documentation
JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.
jsonMatchPattern_all :: Lens' JsonMatchPattern (Maybe All) Source #
Match all of the elements. See also MatchScope
in JsonBody.
You must specify either this setting or the IncludedPaths
setting, but
not both.
jsonMatchPattern_includedPaths :: Lens' JsonMatchPattern (Maybe (NonEmpty Text)) Source #
Match only the specified include paths. See also MatchScope
in
JsonBody.
Provide the include paths using JSON Pointer syntax. For example,
"IncludedPaths": ["/dogs/0/name", "/dogs/1/name"]
. For
information about this syntax, see the Internet Engineering Task Force
(IETF) documentation
JavaScript Object Notation (JSON) Pointer.
You must specify either this setting or the All
setting, but not both.
Don't use this option to include all paths. Instead, use the All
setting.