public static interface CfnRuleGroup.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 |
CfnRuleGroup.CustomResponseBodyProperty.Builder
A builder for
CfnRuleGroup.CustomResponseBodyProperty |
static class |
CfnRuleGroup.CustomResponseBodyProperty.Jsii$Proxy
An implementation for
CfnRuleGroup.CustomResponseBodyProperty |
Modifier and Type | Method and Description |
---|---|
static CfnRuleGroup.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 CfnRuleGroup.CustomResponseBodyProperty.Builder builder()