Interface CfnRuleGroup.CustomResponseBodyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnRuleGroup.CustomResponseBodyProperty.Jsii$Proxy
- Enclosing class:
CfnRuleGroup
@Stability(Stable)
public static interface CfnRuleGroup.CustomResponseBodyProperty
extends software.amazon.jsii.JsiiSerializable
The response body to use in a custom response to a web request.
This is referenced by key from CustomResponse
CustomResponseBodyKey
.
Example:
// The code below shows an example of how to instantiate this type. // The values are placeholders you should change. import software.amazon.awscdk.services.wafv2.*; CustomResponseBodyProperty customResponseBodyProperty = CustomResponseBodyProperty.builder() .content("content") .contentType("contentType") .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnRuleGroup.CustomResponseBodyProperty
static final class
An implementation forCfnRuleGroup.CustomResponseBodyProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The payload of the custom response.The type of content in the payload that you are defining in theContent
string.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContent
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 AWS WAF quotas in the AWS WAF Developer Guide .
- See Also:
-
getContentType
The type of content in the payload that you are defining in theContent
string.- See Also:
-
builder
-