# Class DataRetentionConfig (1.22.0)

1.22.0 (latest) 1.21.0 1.20.0 1.19.0 1.18.0 1.17.5 1.16.1 1.15.1 1.14.0 1.13.1 1.12.2 1.11.1 1.10.0 1.9.1 1.8.0 1.7.1 1.6.1 1.5.0 1.4.4 1.3.2 1.2.1 1.1.0 1.0.0 0.1.3

    DataRetentionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The configuration setting for Airflow database data retention
mechanism.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `airflow_database_retention_days` | `int` Optional. The number of days describing for how long to store event-based records in airflow database. If the retention mechanism is enabled this value must be a positive integer otherwise, value should be set to 0. |
| `task_logs_retention_config` | `https://docs.cloud.google.com/python/docs/reference/composer/latest/google.cloud.orchestration.airflow.service_v1beta1.types.TaskLogsRetentionConfig` Optional. The configuration settings for task logs retention |
| `airflow_metadata_retention_config` | `https://docs.cloud.google.com/python/docs/reference/composer/latest/google.cloud.orchestration.airflow.service_v1beta1.types.AirflowMetadataRetentionPolicyConfig` Optional. The retention policy for airflow metadata database. |