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

Description

 
Synopsis

Documentation

data CustomResponseBody Source #

The response body to use in a custom response to a web request. This is referenced by key from CustomResponse CustomResponseBodyKey.

See: newCustomResponseBody smart constructor.

Constructors

CustomResponseBody' 

Fields

  • contentType :: ResponseContentType

    The type of content in the payload that you are defining in the Content string.

  • content :: Text

    The payload of the custom response.

    You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

    For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

Instances

Instances details
FromJSON CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

ToJSON CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

Generic CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

Associated Types

type Rep CustomResponseBody :: Type -> Type #

Read CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

Show CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

NFData CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

Methods

rnf :: CustomResponseBody -> () #

Eq CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

Hashable CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

type Rep CustomResponseBody Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CustomResponseBody

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

newCustomResponseBody Source #

Create a value of CustomResponseBody 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:contentType:CustomResponseBody', customResponseBody_contentType - The type of content in the payload that you are defining in the Content string.

$sel:content:CustomResponseBody', customResponseBody_content - The payload of the custom response.

You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.

customResponseBody_contentType :: Lens' CustomResponseBody ResponseContentType Source #

The type of content in the payload that you are defining in the Content string.

customResponseBody_content :: Lens' CustomResponseBody Text Source #

The payload of the custom response.

You can use JSON escape strings in JSON content. To do this, you must specify JSON content in the ContentType setting.

For information about the limits on count and size for custom request and response settings, see WAF quotas in the WAF Developer Guide.