interface LoggingFilterProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.WAFv2.CfnLoggingConfiguration.LoggingFilterProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awswafv2#CfnLoggingConfiguration_LoggingFilterProperty |
Java | software.amazon.awscdk.services.wafv2.CfnLoggingConfiguration.LoggingFilterProperty |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| default | string | Default handling for logs that don't match any of the specified filtering conditions. |
| filters | IResolvable | (IResolvable | Filter)[] | 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 | Filter)[]
The filters that you want to apply to the logs.

.NET
Go
Java
Python
TypeScript