Interface CfnWebACL.CustomResponseProperty

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

@Stability(Stable) public static interface CfnWebACL.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 the block action.

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: