Class CfnWebACLProps.Builder

java.lang.Object
software.amazon.awscdk.services.waf.CfnWebACLProps.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnWebACLProps>
Enclosing interface:
CfnWebACLProps

@Stability(Stable) public static final class CfnWebACLProps.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACLProps>
A builder for CfnWebACLProps
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • defaultAction

      @Stability(Stable) public CfnWebACLProps.Builder defaultAction(IResolvable defaultAction)
      Parameters:
      defaultAction - The action to perform if none of the Rules contained in the WebACL match. This parameter is required. The action is specified by the WafAction object.
      Returns:
      this
    • defaultAction

      @Stability(Stable) public CfnWebACLProps.Builder defaultAction(CfnWebACL.WafActionProperty defaultAction)
      Parameters:
      defaultAction - The action to perform if none of the Rules contained in the WebACL match. This parameter is required. The action is specified by the WafAction object.
      Returns:
      this
    • metricName

      @Stability(Stable) public CfnWebACLProps.Builder metricName(String metricName)
      Parameters:
      metricName - The name of the metrics for this WebACL . This parameter is required. The name can contain only alphanumeric characters (A-Z, a-z, 0-9), with maximum length 128 and minimum length one. It can't contain whitespace or metric names reserved for AWS WAF , including "All" and "Default_Action." You can't change MetricName after you create the WebACL .
      Returns:
      this
    • name

      @Stability(Stable) public CfnWebACLProps.Builder name(String name)
      Sets the value of CfnWebACLProps.getName()
      Parameters:
      name - A friendly name or description of the WebACL . This parameter is required. You can't change the name of a WebACL after you create it.
      Returns:
      this
    • rules

      @Stability(Stable) public CfnWebACLProps.Builder rules(IResolvable rules)
      Sets the value of CfnWebACLProps.getRules()
      Parameters:
      rules - An array that contains the action for each Rule in a WebACL , the priority of the Rule , and the ID of the Rule .
      Returns:
      this
    • rules

      @Stability(Stable) public CfnWebACLProps.Builder rules(List<? extends Object> rules)
      Sets the value of CfnWebACLProps.getRules()
      Parameters:
      rules - An array that contains the action for each Rule in a WebACL , the priority of the Rule , and the ID of the Rule .
      Returns:
      this
    • build

      @Stability(Stable) public CfnWebACLProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnWebACLProps>
      Returns:
      a new instance of CfnWebACLProps
      Throws:
      NullPointerException - if any required attribute was not provided