Show / Hide Table of Contents

Class CfnWebACL.CaptchaActionProperty

Specifies that AWS WAF should run a CAPTCHA check against the request:.

Inheritance
object
CfnWebACL.CaptchaActionProperty
Implements
CfnWebACL.ICaptchaActionProperty
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 CfnWebACL.CaptchaActionProperty : CfnWebACL.ICaptchaActionProperty
Syntax (vb)
Public Class CfnWebACL.CaptchaActionProperty Implements CfnWebACL.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.

      See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.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 captchaActionProperty = new CaptchaActionProperty {
                       CustomRequestHandling = new CustomRequestHandlingProperty {
                           InsertHeaders = new [] { new CustomHTTPHeaderProperty {
                               Name = "name",
                               Value = "value"
                           } }
                       }
                   };

      Synopsis

      Constructors

      CaptchaActionProperty()

      Specifies that AWS WAF should run a CAPTCHA check against the request:.

      Properties

      CustomRequestHandling

      Defines custom handling for the web request, used when the CAPTCHA inspection determines that the request's token is valid and unexpired.

      Constructors

      CaptchaActionProperty()

      Specifies that AWS WAF should run a CAPTCHA check against the request:.

      public CaptchaActionProperty()
      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.

          See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-wafv2-webacl-captchaaction.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 captchaActionProperty = new CaptchaActionProperty {
                           CustomRequestHandling = new CustomRequestHandlingProperty {
                               InsertHeaders = new [] { new CustomHTTPHeaderProperty {
                                   Name = "name",
                                   Value = "value"
                               } }
                           }
                       };

          Properties

          CustomRequestHandling

          Defines custom handling for the web request, used when the CAPTCHA inspection determines that the request's token is valid and unexpired.

          public object? CustomRequestHandling { get; set; }
          Property Value

          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 .

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

          Type union: either IResolvable or CfnWebACL.ICustomRequestHandlingProperty

          Implements

          CfnWebACL.ICaptchaActionProperty
          Back to top Generated by DocFX