airflow.providers.amazon.aws.triggers.athena¶
Classes¶
Trigger for AthenaOperator. |
|
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.AwsBaseWaiterTriggerTrigger for AthenaOperator.
The trigger will asynchronously poll the boto3 API
- Parameters:
- 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.AwsBaseWaiterTriggerWait 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.