Interface CfnRuleGroup.CustomResponseProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRuleGroup.CustomResponseProperty.Jsii$Proxy
Enclosing class:
CfnRuleGroup

@Stability(Stable) public static interface CfnRuleGroup.CustomResponseProperty extends software.amazon.jsii.JsiiSerializable
A custom response to send to the client.

You can define a custom response for rule actions and default web ACL actions that are set to Block .

For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF developer guide .

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.*;
 CustomResponseProperty customResponseProperty = CustomResponseProperty.builder()
         .responseCode(123)
         // the properties below are optional
         .customResponseBodyKey("customResponseBodyKey")
         .responseHeaders(List.of(CustomHTTPHeaderProperty.builder()
                 .name("name")
                 .value("value")
                 .build()))
         .build();
 

See Also: