public static interface CfnWebACL.BlockActionProperty
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();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnWebACL.BlockActionProperty.Builder
A builder for
CfnWebACL.BlockActionProperty |
static class |
CfnWebACL.BlockActionProperty.Jsii$Proxy
An implementation for
CfnWebACL.BlockActionProperty |
Modifier and Type | Method and Description |
---|---|
static CfnWebACL.BlockActionProperty.Builder |
builder() |
default java.lang.Object |
getCustomResponse()
Defines a custom response for the web request.
|
default java.lang.Object getCustomResponse()
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .
static CfnWebACL.BlockActionProperty.Builder builder()