Interface CfnWebACL.CustomRequestHandlingProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnWebACL.CustomRequestHandlingProperty.Jsii$Proxy
- Enclosing class:
- CfnWebACL
@Stability(Stable)
public static interface CfnWebACL.CustomRequestHandlingProperty
extends software.amazon.jsii.JsiiSerializable
Custom request handling behavior that inserts custom headers into a web request.
You can add custom request handling for AWS WAF to use when the rule action doesn't block the request. For example, CaptchaAction
for requests with valid t okens, and AllowAction
.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnWebACL.CustomRequestHandlingProperty
static final class
An implementation forCfnWebACL.CustomRequestHandlingProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getInsertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.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 .
-
builder
-