

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::ObservabilityAdmin::TelemetryRule WAFLoggingParameters
<a name="aws-properties-observabilityadmin-telemetryrule-wafloggingparameters"></a>

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

## Syntax
<a name="aws-properties-observabilityadmin-telemetryrule-wafloggingparameters-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-observabilityadmin-telemetryrule-wafloggingparameters-syntax.json"></a>

```
{
  "[LoggingFilter](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-loggingfilter)" : LoggingFilter,
  "[LogType](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-logtype)" : String,
  "[RedactedFields](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-redactedfields)" : [ FieldToMatch, ... ]
}
```

### YAML
<a name="aws-properties-observabilityadmin-telemetryrule-wafloggingparameters-syntax.yaml"></a>

```
  [LoggingFilter](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-loggingfilter): 
    LoggingFilter
  [LogType](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-logtype): String
  [RedactedFields](#cfn-observabilityadmin-telemetryrule-wafloggingparameters-redactedfields): 
    - FieldToMatch
```

## Properties
<a name="aws-properties-observabilityadmin-telemetryrule-wafloggingparameters-properties"></a>

`LoggingFilter`  <a name="cfn-observabilityadmin-telemetryrule-wafloggingparameters-loggingfilter"></a>
 A filter configuration that determines which WAF log records to include or exclude.   
*Required*: No  
*Type*: [LoggingFilter](aws-properties-observabilityadmin-telemetryrule-loggingfilter.md)  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`LogType`  <a name="cfn-observabilityadmin-telemetryrule-wafloggingparameters-logtype"></a>
 The type of WAF logs to collect (currently supports WAF\$1LOGS).   
*Required*: No  
*Type*: String  
*Allowed values*: `WAF_LOGS`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)

`RedactedFields`  <a name="cfn-observabilityadmin-telemetryrule-wafloggingparameters-redactedfields"></a>
 The fields to redact from WAF logs to protect sensitive information.   
*Required*: No  
*Type*: Array of [FieldToMatch](aws-properties-observabilityadmin-telemetryrule-fieldtomatch.md)  
*Maximum*: `100`  
*Update requires*: [No interruption](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-no-interrupt)