| 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 |
Amazonka.WAFV2.Types.HeaderMatchPattern
Description
Synopsis
- data HeaderMatchPattern = HeaderMatchPattern' {}
- newHeaderMatchPattern :: HeaderMatchPattern
- headerMatchPattern_all :: Lens' HeaderMatchPattern (Maybe All)
- headerMatchPattern_excludedHeaders :: Lens' HeaderMatchPattern (Maybe (NonEmpty Text))
- headerMatchPattern_includedHeaders :: Lens' HeaderMatchPattern (Maybe (NonEmpty Text))
Documentation
data HeaderMatchPattern Source #
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"} }
See: newHeaderMatchPattern smart constructor.
Constructors
| HeaderMatchPattern' | |
Instances
newHeaderMatchPattern :: HeaderMatchPattern Source #
Create a value of HeaderMatchPattern 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:HeaderMatchPattern', headerMatchPattern_all - Inspect all headers.
$sel:excludedHeaders:HeaderMatchPattern', headerMatchPattern_excludedHeaders - Inspect only the headers whose keys don't match any of the strings
specified here.
$sel:includedHeaders:HeaderMatchPattern', headerMatchPattern_includedHeaders - Inspect only the headers that have a key that matches one of the strings
specified here.
headerMatchPattern_all :: Lens' HeaderMatchPattern (Maybe All) Source #
Inspect all headers.
headerMatchPattern_excludedHeaders :: Lens' HeaderMatchPattern (Maybe (NonEmpty Text)) Source #
Inspect only the headers whose keys don't match any of the strings specified here.
headerMatchPattern_includedHeaders :: Lens' HeaderMatchPattern (Maybe (NonEmpty Text)) Source #
Inspect only the headers that have a key that matches one of the strings specified here.