Interface CfnWebACL.BlockActionProperty

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

@Stability(Stable) public static interface CfnWebACL.BlockActionProperty extends software.amazon.jsii.JsiiSerializable
Specifies that AWS WAF should block the request and optionally defines additional custom handling for the response to the web request.

This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.

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

See Also: