Interface CfnRuleProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRuleProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:36.104Z") @Stability(Stable) public interface CfnRuleProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnRule.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.waf.regional.*;
 CfnRuleProps cfnRuleProps = CfnRuleProps.builder()
         .metricName("metricName")
         .name("name")
         // the properties below are optional
         .predicates(List.of(PredicateProperty.builder()
                 .dataId("dataId")
                 .negated(false)
                 .type("type")
                 .build()))
         .build();
 
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    A builder for CfnRuleProps
    static final class 
    An implementation for CfnRuleProps
  • Method Summary

    Modifier and Type
    Method
    Description
     
    A name for the metrics for this Rule .
    The friendly name or description for the Rule .
    default Object
    The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Method Details

    • getMetricName

      @Stability(Stable) @NotNull String getMetricName()
      A name for the metrics for this Rule .

      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 Rule .

    • getName

      @Stability(Stable) @NotNull String getName()
      The friendly name or description for the Rule .

      You can't change the name of a Rule after you create it.

    • getPredicates

      @Stability(Stable) @Nullable default Object getPredicates()
      The Predicates object contains one Predicate element for each ByteMatchSet , IPSet , or SqlInjectionMatchSet object that you want to include in a Rule .
    • builder

      @Stability(Stable) static CfnRuleProps.Builder builder()
      Returns:
      a CfnRuleProps.Builder of CfnRuleProps