# WAFLoggingParametersProperty

Configuration parameters for WAF logging, including redacted fields and logging filters.

- Source: Generated code
- Type last changed: v2.233.0 · 18 Dec 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_observabilityadmin as observabilityadmin } from 'aws-cdk-lib';
const wAFLoggingParametersProperty: observabilityadmin.CfnTelemetryRule.WAFLoggingParametersProperty = {
  loggingFilter: {
    defaultBehavior: 'defaultBehavior',
    filters: [{
      behavior: 'behavior',
      conditions: [{
        actionCondition: {
          action: 'action',
        },
        labelNameCondition: {
          labelName: 'labelName',
        },
      }],
      requirement: 'requirement',
    }],
  },
  logType: 'logType',
  redactedFields: [{
    method: 'method',
    queryString: 'queryString',
    singleHeader: {
      name: 'name',
    },
    uriPath: 'uriPath',
  }],
};
```

## Properties

- `loggingFilter`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.LoggingFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.LoggingFilterProperty.html) — A filter configuration that determines which WAF log records to include or exclude.

- `logType`: string — The type of WAF logs to collect (currently supports WAF_LOGS).

- `redactedFields`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTelemetryRule.FieldToMatchProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_observabilityadmin.CfnTelemetryRule.FieldToMatchProperty.html)[] — The fields to redact from WAF logs to protect sensitive information.
