Class CfnRuleGroup.CustomRequestHandlingProperty
Custom request handling behavior that inserts custom headers into a web request.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CustomRequestHandlingProperty : Object, CfnRuleGroup.ICustomRequestHandlingProperty
Syntax (vb)
Public Class CustomRequestHandlingProperty
Inherits Object
Implements CfnRuleGroup.ICustomRequestHandlingProperty
Remarks
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 .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;
var customRequestHandlingProperty = new CustomRequestHandlingProperty {
InsertHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
};
Synopsis
Constructors
CustomRequestHandlingProperty() |
Properties
InsertHeaders | The HTTP headers to insert into the request. Duplicate header names are not allowed. |
Constructors
CustomRequestHandlingProperty()
public CustomRequestHandlingProperty()
Properties
InsertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.
public object InsertHeaders { get; set; }
Property Value
System.Object
Remarks
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 .