Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

airflow.providers.amazon.aws.sensors.redshift_cluster

Classes

RedshiftClusterSensor

Waits for a Redshift cluster to reach a specific status.

Module Contents

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

Bases: airflow.providers.amazon.aws.sensors.base_aws.AwsBaseSensor[airflow.providers.amazon.aws.hooks.redshift_cluster.RedshiftHook]

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.

  • aws_conn_id – The Airflow connection used for AWS credentials. If this is None or empty then the default boto3 behaviour is used. If running Airflow in a distributed manner and aws_conn_id is None or empty, then default boto3 configuration would be used (and must be maintained on each worker node).

  • region_name – AWS region_name. If not specified then the default boto3 behaviour is used.

  • verify – Whether or not to verify SSL certificates. See: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/core/session.html

template_fields: collections.abc.Sequence[str][source]
aws_hook_class[source]
cluster_identifier[source]
target_status = 'available'[source]
deferrable = True[source]
poke(context)[source]

Override when deriving this class.

execute(context)[source]

Derive when creating an operator.

The main method to execute the task. 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]

Was this entry helpful?