# Class MaintenancePolicy (2.22.0)

2.22.0 (latest) 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.1 2.15.5 2.14.0 2.13.1 2.12.1 2.11.1 2.10.0 2.9.3 2.8.1 2.7.1 2.6.0 2.5.1 2.4.1 2.3.0 2.2.4 2.1.1 2.0.0 1.0.2 0.4.0 0.3.0

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

Maintenance policy for an instance.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `create_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the policy was created. |
| `update_time` | `google.protobuf.timestamp_pb2.Timestamp` Output only. The time when the policy was last updated. |
| `description` | `str` Optional. Description of what this policy is for. Create/Update methods return INVALID_ARGUMENT if the length is greater than 512. |
| `weekly_maintenance_window` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/redis/latest/google.cloud.redis_v1beta1.types.WeeklyMaintenanceWindow]` Optional. Maintenance window that is applied to resources covered by this policy. Minimum 1. For the current version, the maximum number of weekly_window is expected to be one. |