aws-cdk-lib.aws_wafv2.CfnLoggingConfiguration.FilterProperty

interface FilterProperty

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

A single logging filter, used in LoggingFilter .

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 filterProperty: wafv2.CfnLoggingConfiguration.FilterProperty = {
  behavior: 'behavior',
  conditions: [{
    actionCondition: {
      action: 'action',
    },
    labelNameCondition: {
      labelName: 'labelName',
    },
  }],
  requirement: 'requirement',
};

Properties

NameTypeDescription
behaviorstringHow to handle logs that satisfy the filter's conditions and requirement.
conditionsIResolvable | IResolvable | ConditionProperty[]Match conditions for the filter.
requirementstringLogic to apply to the filtering conditions.

behavior

Type: string

How to handle logs that satisfy the filter's conditions and requirement.


conditions

Type: IResolvable | IResolvable | ConditionProperty[]

Match conditions for the filter.


requirement

Type: string

Logic to apply to the filtering conditions.

You can specify that, in order to satisfy the filter, a log must match all conditions or must match at least one condition.