public static interface CfnWebACL.CustomResponseBodyProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnWebACL.CustomResponseBodyProperty.Builder
A builder for
CfnWebACL.CustomResponseBodyProperty |
static class |
CfnWebACL.CustomResponseBodyProperty.Jsii$Proxy
An implementation for
CfnWebACL.CustomResponseBodyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnWebACL.CustomResponseBodyProperty.Builder |
builder() |
java.lang.String |
getContent()
The payload of the custom response.
|
java.lang.String |
getContentType()
The type of content in the payload that you are defining in the `Content` string.
|
java.lang.String getContent()
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 .
java.lang.String getContentType()
static CfnWebACL.CustomResponseBodyProperty.Builder builder()