# Class AirflowMetadataRetentionPolicyConfig (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

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

The policy for airflow metadata database retention.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `retention_mode` | `https://docs.cloud.google.com/python/docs/reference/composer/latest/google.cloud.orchestration.airflow.service_v1.types.AirflowMetadataRetentionPolicyConfig.RetentionMode` Optional. Retention can be either enabled or disabled. |
| `retention_days` | `int` Optional. How many days data should be retained for. |

## Classes

### RetentionMode

    RetentionMode(value)

Describes retention policy.