Class CfnWebACL.WafActionProperty.Builder

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

@Stability(Stable) public static final class CfnWebACL.WafActionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnWebACL.WafActionProperty>
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • type

      @Stability(Stable) public CfnWebACL.WafActionProperty.Builder type(String type)
      Parameters:
      type - Specifies how you want AWS WAF to respond to requests that match the settings in a Rule . This parameter is required. Valid settings include the following:

      • ALLOW : AWS WAF allows requests
      • BLOCK : AWS WAF blocks requests
      • COUNT : AWS WAF increments a counter of the requests that match all of the conditions in the rule. AWS WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specify COUNT for the default action for a WebACL .
      Returns:
      this
    • build

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