Class WebAclRuleArgs


  • public final class WebAclRuleArgs
    extends com.pulumi.resources.ResourceArgs
    • Method Detail

      • action

        public java.util.Optional<com.pulumi.core.Output<WebAclRuleActionArgs>> action()
        Returns:
        Action that AWS WAF should take on a web request when it matches the rule's statement. This is used only for rules whose **statements do not reference a rule group**. See `action` for details.
      • captchaConfig

        public java.util.Optional<com.pulumi.core.Output<WebAclRuleCaptchaConfigArgs>> captchaConfig()
        Returns:
        Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details.
      • name

        public com.pulumi.core.Output<java.lang.String> name()
        Returns:
        Friendly name of the rule. Note that the provider assumes that rules with names matching this pattern, `^ShieldMitigationRuleGroup_<account-id>_<web-acl-guid>_.*`, are AWS-added for [automatic application layer DDoS mitigation activities](https://docs.aws.amazon.com/waf/latest/developerguide/ddos-automatic-app-layer-response-rg.html). Such rules will be ignored by the provider unless you explicitly include them in your configuration (for example, by using the AWS CLI to discover their properties and creating matching configuration). However, since these rules are owned and managed by AWS, you may get permission errors.
      • overrideAction

        public java.util.Optional<com.pulumi.core.Output<WebAclRuleOverrideActionArgs>> overrideAction()
        Returns:
        Override action to apply to the rules in a rule group. Used only for rule **statements that reference a rule group**, like `rule_group_reference_statement` and `managed_rule_group_statement`. See `override_action` below for details.
      • priority

        public com.pulumi.core.Output<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.Optional<com.pulumi.core.Output<java.util.List<WebAclRuleRuleLabelArgs>>> ruleLabels()
        Returns:
        Labels to apply to web requests that match the rule match statement. See `rule_label` below for details.
      • statement

        public com.pulumi.core.Output<WebAclRuleStatementArgs> statement()
        Returns:
        The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details.
      • visibilityConfig

        public com.pulumi.core.Output<WebAclRuleVisibilityConfigArgs> visibilityConfig()
        Returns:
        Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details.