airflow.providers.amazon.aws.triggers.athena

Classes

AthenaTrigger

Trigger for AthenaOperator.

AthenaSparkTrigger

Wait asynchronously for an Athena Spark calculation to reach a terminal state.

Module Contents

class airflow.providers.amazon.aws.triggers.athena.AthenaTrigger(query_execution_id, waiter_delay, waiter_max_attempts, aws_conn_id, **kwargs)[source]

Bases: airflow.providers.amazon.aws.triggers.base.AwsBaseWaiterTrigger

Trigger for AthenaOperator.

The trigger will asynchronously poll the boto3 API

Parameters:
  • query_execution_id (str) – ID of the Athena query execution to watch

  • waiter_delay (int) – The amount of time in seconds to wait between attempts.

  • waiter_max_attempts (int) – The maximum number of attempts to be made.

  • aws_conn_id (str | None) – The Airflow connection used for AWS credentials.

hook()[source]

Build the hook this trigger waits with.

class airflow.providers.amazon.aws.triggers.athena.AthenaSparkTrigger(*, calculation_execution_id, waiter_delay=30, waiter_max_attempts=120, aws_conn_id='aws_default', region_name=None, verify=None, botocore_config=None)[source]

Bases: airflow.providers.amazon.aws.triggers.base.AwsBaseWaiterTrigger

Wait asynchronously for an Athena Spark calculation to reach a terminal state.

Parameters:
  • calculation_execution_id (str) – Calculation execution ID to monitor.

  • waiter_delay (int) – Seconds between status checks. Defaults to 30.

  • waiter_max_attempts (int) – Maximum number of polling attempts. Defaults to 120.

  • aws_conn_id (str | None) – Airflow connection used for AWS credentials. Defaults to aws_default.

  • region_name (str | None) – AWS region. If not set, default boto3 behavior is used. Defaults to None.

  • verify (bool | str | None) – Whether to verify SSL certificates, or the path to a CA bundle. Defaults to None.

  • botocore_config (dict | None) – Optional botocore configuration dict. Defaults to None.

aws_hook_class[source]

Was this entry helpful?