Interface CfnWebACL.ICaptchaActionProperty
Specifies that AWS WAF should run a CAPTCHA
check against the request:.
Namespace: Amazon.CDK.AWS.WAFv2
Assembly: Amazon.CDK.AWS.WAFv2.dll
Syntax (csharp)
public interface ICaptchaActionProperty
Syntax (vb)
Public Interface ICaptchaActionProperty
Remarks
AWS WAF generates a response that it sends back to the client, which includes the following:
You can configure the expiration time in the CaptchaConfig
ImmunityTimeProperty
setting at the rule and web ACL level. The rule setting overrides the web ACL setting.
This action option is available for rules. It isn't available for web ACL default actions.
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 captchaActionProperty = new CaptchaActionProperty {
CustomRequestHandling = new CustomRequestHandlingProperty {
InsertHeaders = new [] { new CustomHTTPHeaderProperty {
Name = "name",
Value = "value"
} }
}
};
Synopsis
Properties
CustomRequestHandling | Defines custom handling for the web request, used when the |
Properties
CustomRequestHandling
Defines custom handling for the web request, used when the CAPTCHA
inspection determines that the request's token is valid and unexpired.
virtual object CustomRequestHandling { get; }
Property Value
System.Object
Remarks
For information about customizing web requests and responses, see Customizing web requests and responses in AWS WAF in the AWS WAF Developer Guide .