interface CustomRequestHandlingProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.WAFv2.CfnRuleGroup.CustomRequestHandlingProperty |
Java | software.amazon.awscdk.services.wafv2.CfnRuleGroup.CustomRequestHandlingProperty |
Python | aws_cdk.aws_wafv2.CfnRuleGroup.CustomRequestHandlingProperty |
TypeScript | @aws-cdk/aws-wafv2 » CfnRuleGroup » CustomRequestHandlingProperty |
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 * as wafv2 from '@aws-cdk/aws-wafv2';
const customRequestHandlingProperty: wafv2.CfnRuleGroup.CustomRequestHandlingProperty = {
insertHeaders: [{
name: 'name',
value: 'value',
}],
};
Properties
Name | Type | Description |
---|---|---|
insert | IResolvable | IResolvable | Custom [] | The HTTP headers to insert into the request. Duplicate header names are not allowed. |
insertHeaders
Type:
IResolvable
|
IResolvable
|
Custom
[]
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 .