Interface RuleActionOverride.Builder

  • Method Details

    • name

      The name of the rule to override.

      Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.

      Parameters:
      name - The name of the rule to override.

      Take care to verify the rule names in your overrides. If you provide a rule name that doesn't match the name of any rule in the rule group, WAF doesn't return an error and doesn't apply the override setting.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionToUse

      RuleActionOverride.Builder actionToUse(RuleAction actionToUse)

      The override action to use, in place of the configured action of the rule in the rule group.

      Parameters:
      actionToUse - The override action to use, in place of the configured action of the rule in the rule group.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • actionToUse

      default RuleActionOverride.Builder actionToUse(Consumer<RuleAction.Builder> actionToUse)

      The override action to use, in place of the configured action of the rule in the rule group.

      This is a convenience method that creates an instance of the RuleAction.Builder avoiding the need to create one manually via RuleAction.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to actionToUse(RuleAction).

      Parameters:
      actionToUse - a consumer that will call methods on RuleAction.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: