Interface WafConfig.Builder

  • Method Details

    • isWafEnabled

      WafConfig.Builder isWafEnabled(Boolean isWafEnabled)

      Specifies whether WAF is enabled for the distribution.

      Parameters:
      isWafEnabled - Specifies whether WAF is enabled for the distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wafRules

      WafConfig.Builder wafRules(Collection<WafRule> wafRules)

      An array of objects that describe the WAF rule groups enabled for the distribution.

      Parameters:
      wafRules - An array of objects that describe the WAF rule groups enabled for the distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wafRules

      WafConfig.Builder wafRules(WafRule... wafRules)

      An array of objects that describe the WAF rule groups enabled for the distribution.

      Parameters:
      wafRules - An array of objects that describe the WAF rule groups enabled for the distribution.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • wafRules

      WafConfig.Builder wafRules(Consumer<WafRule.Builder>... wafRules)

      An array of objects that describe the WAF rule groups enabled for the distribution.

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

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to wafRules(List<WafRule>).

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