Show / Hide Table of Contents

Class CfnRuleGroup.CustomRequestHandlingProperty

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

Inheritance
object
CfnRuleGroup.CustomRequestHandlingProperty
Implements
CfnRuleGroup.ICustomRequestHandlingProperty
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-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

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 .

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-rulegroup-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"
                 } }
             };

Properties

InsertHeaders

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

public object InsertHeaders { get; set; }
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-rulegroup-customrequesthandling.html#cfn-wafv2-rulegroup-customrequesthandling-insertheaders

Implements

CfnRuleGroup.ICustomRequestHandlingProperty
Back to top Generated by DocFX