AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::WAFV2::Types::RuleAction

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing RuleAction as input to an Aws::Client method, you can use a vanilla Hash:

{
  block: {
  },
  allow: {
  },
  count: {
  },
}

This is the latest version of AWS WAF, named AWS WAFV2, released in November, 2019. For information, including how to migrate your AWS WAF resources from the prior release, see the AWS WAF Developer Guide.

The action that AWS WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#allowTypes::AllowAction

Instructs AWS WAF to allow the web request.

Returns:

#blockTypes::BlockAction

Instructs AWS WAF to block the web request.

Returns:

#countTypes::CountAction

Instructs AWS WAF to count the web request and allow it.

Returns: