airflow.providers.amazon.aws.sensors.redshift_cluster

Module Contents

Classes

RedshiftClusterSensor

Waits for a Redshift cluster to reach a specific status.

class airflow.providers.amazon.aws.sensors.redshift_cluster.RedshiftClusterSensor(*, cluster_identifier, target_status='available', aws_conn_id='aws_default', deferrable=conf.getboolean('operators', 'default_deferrable', fallback=False), **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Waits for a Redshift cluster to reach a specific status.

See also

For more information on how to use this sensor, take a look at the guide: Wait on an Amazon Redshift cluster state

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

  • target_status (str) – The cluster status desired.

  • deferrable (bool) – Run operator in the deferrable mode.

template_fields: Sequence[str] = ('cluster_identifier', 'target_status')[source]
poke(context)[source]

Override when deriving this class.

execute(context)[source]

Derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

execute_complete(context, event=None)[source]
get_hook()[source]

Create and return a RedshiftHook.

hook()[source]

Was this entry helpful?