class_docstr: Delete an AWS Redshift cluster.
  
  .. seealso::
      For more information on how to use this operator, take a look at the guide:
      :ref:`howto/operator:RedshiftDeleteClusterOperator`
  
  :param cluster_identifier: unique identifier of a cluster
  :param skip_final_cluster_snapshot: determines cluster snapshot creation
  :param final_cluster_snapshot_identifier: name of final cluster snapshot
  :param wait_for_completion: Whether wait for cluster deletion or not
      The default value is ``True``
  :param aws_conn_id: aws connection to use
  :param poll_interval: Time (in seconds) to wait between two consecutive calls to check cluster state
  :param deferrable: Run operator in the deferrable mode.
  :param max_attempts: (Deferrable mode only) The maximum number of attempts to be made
code: def __init__(
      self,
      *,
      cluster_identifier: str,
      skip_final_cluster_snapshot: bool = True,
      final_cluster_snapshot_identifier: str | None = None,
      wait_for_completion: bool = True,
      aws_conn_id: str = "aws_default",
      poll_interval: int = 30,
      deferrable: bool = conf.getboolean(
          "operators", "default_deferrable", fallback=False
      ),
      max_attempts: int = 30,
      **kwargs,
  ):
      super().__init__(**kwargs)
      self.cluster_identifier = cluster_identifier
      self.skip_final_cluster_snapshot = skip_final_cluster_snapshot
      self.final_cluster_snapshot_identifier = (
          final_cluster_snapshot_identifier
      )
      self.wait_for_completion = wait_for_completion
      self.poll_interval = poll_interval
      # These parameters are added to keep trying if there is a running operation in the cluster
      # If there is a running operation in the cluster while trying to delete it, a InvalidClusterStateFault
      # is thrown. In such case, retrying
      self._attempts = 10
      self._attempt_interval = 15
      self.redshift_hook = RedshiftHook(aws_conn_id=aws_conn_id)
      self.aws_conn_id = aws_conn_id
      self.deferrable = deferrable
      self.max_attempts = max_attempts
  
imports: from __future__ import annotations
  import time
  from datetime import timedelta
  from typing import TYPE_CHECKING, Any, Sequence
  from airflow.configuration import conf
  from airflow.exceptions import AirflowException
  from airflow.models import BaseOperator
  from airflow.providers.amazon.aws.hooks.redshift_cluster import RedshiftHook
  from airflow.providers.amazon.aws.triggers.redshift_cluster import RedshiftCreateClusterSnapshotTrigger, RedshiftCreateClusterTrigger, RedshiftDeleteClusterTrigger, RedshiftPauseClusterTrigger, RedshiftResumeClusterTrigger
label_desc: Use image node_id 1 to create a new RedshiftDeleteClusterOperator object from inherited base classes: BaseOperator with example: obj = RedshiftDeleteClusterOperator()