class_docstr: Utility class for the cluster state concept of Databricks cluster.
class_docstr_tok: ["Utility","class","for","the","cluster","state","concept","of","Databricks","cluster","."]
code: def __init__(
      self, state: str = "", state_message: str = "", *args, **kwargs
  ) -> None:
      if state not in self.CLUSTER_LIFE_CYCLE_STATES:
          raise AirflowException(
              f"Unexpected cluster life cycle state: {state}: If the state has "
              "been introduced recently, please check the Databricks user "
              "guide for troubleshooting information"
          )
  
      self.state = state
      self.state_message = state_message
  
imports: from __future__ import annotations
  import json
  from typing import Any
  from requests import exceptions
  from airflow.exceptions import AirflowException
  from airflow.providers.databricks.hooks.databricks_base import BaseDatabricksHook
label_desc: Use image node_id 1 to create a new ClusterState object  with example: obj = ClusterState(state, state_message)