AWS::WAFv2::RuleGroup CustomResponseBody
The response body to use in a custom response to a web request. This is referenced by
key from CustomResponse
CustomResponseBodyKey
.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Content" :
String
, "ContentType" :String
}
YAML
Content:
String
ContentType:String
Properties
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 Amazon WAF quotas in the Amazon WAF Developer Guide.
Required: Yes
Type: String
Minimum:
1
Maximum:
10240
Update requires: No interruption
ContentType
-
The type of content in the payload that you are defining in the
Content
string.Required: Yes
Type: String
Allowed values:
TEXT_PLAIN | TEXT_HTML | APPLICATION_JSON
Update requires: No interruption