Class RuleGroupRule


  • public final class RuleGroupRule
    extends java.lang.Object
    • Method Detail

      • action

        public RuleGroupRuleAction action()
        Returns:
        Action that AWS WAF should take on a web request when it matches the rule's statement. Settings at the `aws.wafv2.WebAcl` level can override the rule action setting. See Action below for details.
      • captchaConfig

        public java.util.Optional<RuleGroupRuleCaptchaConfig> captchaConfig()
        Returns:
        Configuration for how AWS WAF handles CAPTCHA evaluations. See Captcha Configuration below for details.
      • name

        public java.lang.String name()
        Returns:
        Friendly name of the rule.
      • priority

        public java.lang.Integer priority()
        Returns:
        If you define more than one Rule in a WebACL, AWS WAF evaluates each request against the `rules` in order based on the value of `priority`. AWS WAF processes rules with lower priority first.
      • ruleLabels

        public java.util.List<RuleGroupRuleRuleLabel> ruleLabels()
        Returns:
        Labels to apply to web requests that match the rule match statement. See Rule Label below for details.
      • statement

        public RuleGroupRuleStatement statement()
        Returns:
        AWS WAF processing statement for the rule, for example `byteMatchStatement` or `geoMatchStatement`. See Statement below for details.
      • visibilityConfig

        public RuleGroupRuleVisibilityConfig visibilityConfig()
        Returns:
        Amazon CloudWatch metrics and web request sample collection configuration. See Visibility Configuration below for details.