# Class SchedulingGracefulShutdown (0.12.0)

0.12.0 (latest) 0.11.0 0.4.0 0.3.0 0.2.0 0.1.8

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

The configuration for gracefully shutting down the instance.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `enabled` | `bool` Opts-in for graceful shutdown. This field is a member of `oneof`_ `_enabled`. |
| `max_duration` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-compute-v1beta/latest/google.cloud.compute_v1beta.types.Duration` The time allotted for the instance to gracefully shut down. If the graceful shutdown isn't complete after this time, then the instance transitions to the STOPPING state. This field is a member of `oneof`_ `_max_duration`. |