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.CustomHTTPHeader

Description

 
Synopsis

Documentation

data CustomHTTPHeader Source #

A custom header for custom request and response handling. This is used in CustomResponse and CustomRequestHandling.

See: newCustomHTTPHeader smart constructor.

Constructors

CustomHTTPHeader' 

Fields

  • name :: Text

    The name of the custom header.

    For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

  • value :: Text

    The value of the custom header.

Instances

Instances details
FromJSON CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

ToJSON CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

Generic CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

Associated Types

type Rep CustomHTTPHeader :: Type -> Type #

Read CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

Show CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

NFData CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

Methods

rnf :: CustomHTTPHeader -> () #

Eq CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

Hashable CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

type Rep CustomHTTPHeader Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomHTTPHeader

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

newCustomHTTPHeader Source #

Create a value of CustomHTTPHeader 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:CustomHTTPHeader', customHTTPHeader_name - The name of the custom header.

For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

$sel:value:CustomHTTPHeader', customHTTPHeader_value - The value of the custom header.

customHTTPHeader_name :: Lens' CustomHTTPHeader Text Source #

The name of the custom header.

For custom request header insertion, when WAF inserts the header into the request, it prefixes this name x-amzn-waf-, to avoid confusion with the headers that are already in the request. For example, for the header name sample, WAF inserts the header x-amzn-waf-sample.

customHTTPHeader_value :: Lens' CustomHTTPHeader Text Source #

The value of the custom header.