Interface CfnLoggingConfiguration.LoggingFilterProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLoggingConfiguration.LoggingFilterProperty.Jsii$Proxy
Enclosing class:
CfnLoggingConfiguration

@Stability(Stable) public static interface CfnLoggingConfiguration.LoggingFilterProperty extends software.amazon.jsii.JsiiSerializable
Filtering that specifies which web requests are kept in the logs and which are dropped, defined for a web ACL's LoggingConfiguration .

You can filter on the rule action and on the web request labels that were applied by matching rules during web ACL evaluation.

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.wafv2.*;
 LoggingFilterProperty loggingFilterProperty = LoggingFilterProperty.builder()
         .defaultBehavior("defaultBehavior")
         .filters(List.of(FilterProperty.builder()
                 .behavior("behavior")
                 .conditions(List.of(ConditionProperty.builder()
                         .actionCondition(ActionConditionProperty.builder()
                                 .action("action")
                                 .build())
                         .labelNameCondition(LabelNameConditionProperty.builder()
                                 .labelName("labelName")
                                 .build())
                         .build()))
                 .requirement("requirement")
                 .build()))
         .build();