public static interface CfnWebACL.CustomRequestHandlingProperty
You can add custom request handling for the rule actions allow and count.
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.*; CustomRequestHandlingProperty customRequestHandlingProperty = CustomRequestHandlingProperty.builder() .insertHeaders(List.of(CustomHTTPHeaderProperty.builder() .name("name") .value("value") .build())) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CfnWebACL.CustomRequestHandlingProperty.Builder
A builder for
CfnWebACL.CustomRequestHandlingProperty |
static class |
CfnWebACL.CustomRequestHandlingProperty.Jsii$Proxy
An implementation for
CfnWebACL.CustomRequestHandlingProperty |
Modifier and Type | Method and Description |
---|---|
static CfnWebACL.CustomRequestHandlingProperty.Builder |
builder() |
java.lang.Object |
getInsertHeaders()
The HTTP headers to insert into the request.
|
java.lang.Object getInsertHeaders()
For information about the limits on count and size for custom request and response settings, see AWS WAF quotas in the AWS WAF Developer Guide .
static CfnWebACL.CustomRequestHandlingProperty.Builder builder()