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