airflow.providers.amazon.aws.sensors.redshift_cluster

Module Contents

Classes

AwsRedshiftClusterSensor

Waits for a Redshift cluster to reach a specific status.

class airflow.providers.amazon.aws.sensors.redshift_cluster.AwsRedshiftClusterSensor(*, cluster_identifier: str, target_status: str = 'available', aws_conn_id: str = 'aws_default', **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Waits for a Redshift cluster to reach a specific status.

Parameters
  • cluster_identifier (str) -- The identifier for the cluster being pinged.

  • target_status (str) -- The cluster status desired.

template_fields :Sequence[str] = ['cluster_identifier', 'target_status'][source]
poke(self, context: airflow.utils.context.Context)[source]

Function that the sensors defined while deriving this class should override.

get_hook(self) airflow.providers.amazon.aws.hooks.redshift_cluster.RedshiftHook[source]

Create and return a RedshiftHook

Was this entry helpful?