Skip to content
v2.274.0

WAFLoggingParametersProperty Struct ​

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

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 ​

loggingFilteroptionalIResolvable | CfnTelemetryRule.LoggingFilterPropertylogging_filteroptionaltyping.Union[IResolvable, LoggingFilterProperty]loggingFilteroptionalIResolvableLoggingFilteroptionalIResolvableLoggingFilteroptionalinterface{}#
A filter configuration that determines which WAF log records to include or exclude.
logTypeoptionalstringlog_typeoptionalstrlogTypeoptionalStringLogTypeoptionalstringLogTypeoptional*string#
The type of WAF logs to collect (currently supports WAF_LOGS).
redactedFieldsoptionalIResolvable | IResolvable | CfnTelemetryRule.FieldToMatchProperty[]redacted_fieldsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldToMatchProperty]]]redactedFieldsoptionalIResolvableRedactedFieldsoptionalIResolvableRedactedFieldsoptionalinterface{}#
The fields to redact from WAF logs to protect sensitive information.