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:
        The action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Not used if `type` is `GROUP`.
      • overrideAction

        public java.util.Optional<com.pulumi.core.Output<WebAclRuleOverrideActionArgs>> overrideAction()
        Returns:
        Override the action that a group requests CloudFront or AWS WAF takes when a web request matches the conditions in the rule. Only used if `type` is `GROUP`.
      • priority

        public com.pulumi.core.Output<java.lang.Integer> priority()
        Returns:
        Specifies the order in which the rules in a WebACL are evaluated. Rules with a lower value are evaluated before rules with a higher value.
      • ruleId

        public com.pulumi.core.Output<java.lang.String> ruleId()
        Returns:
        ID of the associated WAF (Global) rule (e.g., `aws.waf.Rule`). WAF (Regional) rules cannot be used.
      • type

        public java.util.Optional<com.pulumi.core.Output<java.lang.String>> type()
        Returns:
        The rule type, either `REGULAR`, as defined by [Rule](http://docs.aws.amazon.com/waf/latest/APIReference/API_Rule.html), `RATE_BASED`, as defined by [RateBasedRule](http://docs.aws.amazon.com/waf/latest/APIReference/API_RateBasedRule.html), or `GROUP`, as defined by [RuleGroup](https://docs.aws.amazon.com/waf/latest/APIReference/API_RuleGroup.html). The default is REGULAR. If you add a RATE_BASED rule, you need to set `type` as `RATE_BASED`. If you add a GROUP rule, you need to set `type` as `GROUP`.