amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.Types.SingleHeader

Description

 
Synopsis

Documentation

data SingleHeader Source #

Inspect one of the headers in the web request, identified by name, for example, User-Agent or Referer. The name isn't case sensitive.

You can filter and inspect all headers with the FieldToMatch setting Headers.

This is used to indicate the web request component to inspect, in the FieldToMatch specification.

Example JSON: "SingleHeader": { "Name": "haystack" }

See: newSingleHeader smart constructor.

Constructors

SingleHeader' 

Fields

  • name :: Text

    The name of the query header to inspect.

Instances

Instances details
FromJSON SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

ToJSON SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

Generic SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

Associated Types

type Rep SingleHeader :: Type -> Type #

Read SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

Show SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

NFData SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

Methods

rnf :: SingleHeader -> () #

Eq SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

Hashable SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

type Rep SingleHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SingleHeader

type Rep SingleHeader = D1 ('MetaData "SingleHeader" "Amazonka.WAFV2.Types.SingleHeader" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "SingleHeader'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newSingleHeader Source #

Create a value of SingleHeader 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:name:SingleHeader', singleHeader_name - The name of the query header to inspect.

singleHeader_name :: Lens' SingleHeader Text Source #

The name of the query header to inspect.