Class CfnWebACL.CountActionProperty
Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnWebACL.CountActionProperty : CfnWebACL.ICountActionProperty
Syntax (vb)
Public Class CfnWebACL.CountActionProperty Implements CfnWebACL.ICountActionProperty
Remarks
This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.
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 countActionProperty = new CountActionProperty {
CustomRequestHandling = new CustomRequestHandlingProperty {
InsertHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
}
};
Synopsis
Constructors
| CountActionProperty() | Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request. |
Properties
| CustomRequestHandling | Defines custom handling for the web request. |
Constructors
CountActionProperty()
Specifies that AWS WAF should count the request. Optionally defines additional custom handling for the request.
public CountActionProperty()
Remarks
This is used in the context of other settings, for example to specify values for a rule action or a web ACL default action.
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 countActionProperty = new CountActionProperty {
CustomRequestHandling = new CustomRequestHandlingProperty {
InsertHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
}
};
Properties
CustomRequestHandling
Defines custom handling for the web request.
public object? CustomRequestHandling { get; set; }
Property Value
Remarks
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .
Type union: either IResolvable or CfnWebACL.ICustomRequestHandlingProperty