Interface CfnWebACL.CustomResponseBodyProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.CustomResponseBodyProperty.Jsii$Proxy
- Enclosing class:
- CfnWebACL
@Stability(Stable)
public static interface CfnWebACL.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnWebACL.CustomResponseBodyPropertystatic final classAn implementation forCfnWebACL.CustomResponseBodyProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()The payload of the custom response.The type of content in the payload that you are defining in theContentstring.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
ContentTypesetting.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 .
-
getContentType
The type of content in the payload that you are defining in theContentstring. -
builder
-