Show / Hide Table of Contents

Interface CfnWebACL.ICustomRequestHandlingProperty

Custom request handling behavior that inserts custom headers into a web request.

Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface CfnWebACL.ICustomRequestHandlingProperty
Syntax (vb)
Public Interface CfnWebACL.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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html

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

Properties

InsertHeaders

The HTTP headers to insert into the request. Duplicate header names are not allowed.

Properties

InsertHeaders

The HTTP headers to insert into the request. Duplicate header names are not allowed.

object InsertHeaders { get; }
Property Value

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-customrequesthandling.html#cfn-wafv2-webacl-customrequesthandling-insertheaders

Type union: either IResolvable or (either IResolvable or CfnWebACL.ICustomHTTPHeaderProperty)[]

Back to top Generated by DocFX