aws-cdk-lib.aws_wafv2.CfnLoggingConfiguration.LoggingFilterProperty

interface LoggingFilterProperty

LanguageType name
.NETAmazon.CDK.AWS.WAFv2.CfnLoggingConfiguration.LoggingFilterProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnLoggingConfiguration_LoggingFilterProperty
Javasoftware.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.LoggingFilterProperty
Pythonaws_cdk.aws_wafv2.CfnLoggingConfiguration.LoggingFilterProperty
TypeScript aws-cdk-lib » aws_wafv2 » CfnLoggingConfiguration » LoggingFilterProperty

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 { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const loggingFilterProperty: wafv2.CfnLoggingConfiguration.LoggingFilterProperty = {
  defaultBehavior: 'defaultBehavior',
  filters: [{
    behavior: 'behavior',
    conditions: [{
      actionCondition: {
        action: 'action',
      },
      labelNameCondition: {
        labelName: 'labelName',
      },
    }],
    requirement: 'requirement',
  }],
};

Properties

NameTypeDescription
defaultBehaviorstringDefault handling for logs that don't match any of the specified filtering conditions.
filtersIResolvable | IResolvable | FilterProperty[]The filters that you want to apply to the logs.

defaultBehavior

Type: string

Default handling for logs that don't match any of the specified filtering conditions.


filters

Type: IResolvable | IResolvable | FilterProperty[]

The filters that you want to apply to the logs.