

# WafAction
<a name="API_WafAction"></a>

Details about the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. 

## Contents
<a name="API_WafAction_Contents"></a>

 ** Type **   <a name="securityhub-Type-WafAction-Type"></a>
Specifies how you want AWS WAF to respond to requests that match the settings in a rule.  
Valid settings include the following:  
+  `ALLOW` - AWS WAF allows requests
+  `BLOCK` - AWS WAF blocks requests
+  `COUNT` - AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify `COUNT` for the default action for a web ACL.
Type: String  
Pattern: `.*\S.*`   
Required: No

## See Also
<a name="API_WafAction_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/securityhub-2018-10-26/WafAction) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/securityhub-2018-10-26/WafAction) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/securityhub-2018-10-26/WafAction) 