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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACL.BlockActionProperty
static final class
An implementation forCfnWebACL.BlockActionProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCustomResponse
Defines a custom response for the web request.For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .
-
builder
-