Class WebAclRuleArgs.Builder

  • Enclosing class:
    WebAclRuleArgs

    public static final class WebAclRuleArgs.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • action

        public WebAclRuleArgs.Builder action​(@Nullable
                                             com.pulumi.core.Output<WebAclRuleActionArgs> action)
        Parameters:
        action - 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.
        Returns:
        builder
      • action

        public WebAclRuleArgs.Builder action​(WebAclRuleActionArgs action)
        Parameters:
        action - 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.
        Returns:
        builder
      • captchaConfig

        public WebAclRuleArgs.Builder captchaConfig​(@Nullable
                                                    com.pulumi.core.Output<WebAclRuleCaptchaConfigArgs> captchaConfig)
        Parameters:
        captchaConfig - Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details.
        Returns:
        builder
      • captchaConfig

        public WebAclRuleArgs.Builder captchaConfig​(WebAclRuleCaptchaConfigArgs captchaConfig)
        Parameters:
        captchaConfig - Specifies how AWS WAF should handle CAPTCHA evaluations. See `captcha_config` below for details.
        Returns:
        builder
      • name

        public WebAclRuleArgs.Builder name​(com.pulumi.core.Output<java.lang.String> name)
        Parameters:
        name - 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.
        Returns:
        builder
      • name

        public WebAclRuleArgs.Builder name​(java.lang.String name)
        Parameters:
        name - 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.
        Returns:
        builder
      • overrideAction

        public WebAclRuleArgs.Builder overrideAction​(@Nullable
                                                     com.pulumi.core.Output<WebAclRuleOverrideActionArgs> overrideAction)
        Parameters:
        overrideAction - 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.
        Returns:
        builder
      • overrideAction

        public WebAclRuleArgs.Builder overrideAction​(WebAclRuleOverrideActionArgs overrideAction)
        Parameters:
        overrideAction - 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.
        Returns:
        builder
      • priority

        public WebAclRuleArgs.Builder priority​(com.pulumi.core.Output<java.lang.Integer> priority)
        Parameters:
        priority - 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.
        Returns:
        builder
      • priority

        public WebAclRuleArgs.Builder priority​(java.lang.Integer priority)
        Parameters:
        priority - 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.
        Returns:
        builder
      • ruleLabels

        public WebAclRuleArgs.Builder ruleLabels​(@Nullable
                                                 com.pulumi.core.Output<java.util.List<WebAclRuleRuleLabelArgs>> ruleLabels)
        Parameters:
        ruleLabels - Labels to apply to web requests that match the rule match statement. See `rule_label` below for details.
        Returns:
        builder
      • ruleLabels

        public WebAclRuleArgs.Builder ruleLabels​(java.util.List<WebAclRuleRuleLabelArgs> ruleLabels)
        Parameters:
        ruleLabels - Labels to apply to web requests that match the rule match statement. See `rule_label` below for details.
        Returns:
        builder
      • ruleLabels

        public WebAclRuleArgs.Builder ruleLabels​(WebAclRuleRuleLabelArgs... ruleLabels)
        Parameters:
        ruleLabels - Labels to apply to web requests that match the rule match statement. See `rule_label` below for details.
        Returns:
        builder
      • statement

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

        public WebAclRuleArgs.Builder statement​(WebAclRuleStatementArgs statement)
        Parameters:
        statement - The AWS WAF processing statement for the rule, for example `byte_match_statement` or `geo_match_statement`. See `statement` below for details.
        Returns:
        builder
      • visibilityConfig

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

        public WebAclRuleArgs.Builder visibilityConfig​(WebAclRuleVisibilityConfigArgs visibilityConfig)
        Parameters:
        visibilityConfig - Defines and enables Amazon CloudWatch metrics and web request sample collection. See `visibility_config` below for details.
        Returns:
        builder