Class CfnRuleGroup.CustomRequestHandlingProperty
Custom request handling behavior that inserts custom headers into a web request.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnRuleGroup.CustomRequestHandlingProperty : CfnRuleGroup.ICustomRequestHandlingProperty
Syntax (vb)
Public Class CfnRuleGroup.CustomRequestHandlingProperty 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() | Custom request handling behavior that inserts custom headers into a web request. |
Properties
InsertHeaders | The HTTP headers to insert into the request. Duplicate header names are not allowed. |
Constructors
CustomRequestHandlingProperty()
Custom request handling behavior that inserts custom headers into a web request.
public CustomRequestHandlingProperty()
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"
} }
};
Properties
InsertHeaders
The HTTP headers to insert into the request. Duplicate header names are not allowed.
public object InsertHeaders { get; set; }
Property Value
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 .