Interface CfnWebACL.ActionProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnWebACL.ActionProperty extends
Specifies the action AWS WAF takes when a web request matches or doesn't match all rule conditions.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ActionProperty actionProperty = ActionProperty.builder()
  • Method Details

    • getType

      @Stability(Stable) @NotNull String getType()
      For actions that are associated with a rule, the action that AWS WAF takes when a web request matches all conditions in a rule.

      For the default action of a web access control list (ACL), the action that AWS WAF takes when a web request doesn't match all conditions in any 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 WebACL.
    • builder

      @Stability(Stable) static CfnWebACL.ActionProperty.Builder builder()
      a CfnWebACL.ActionProperty.Builder of CfnWebACL.ActionProperty