awswrangler.athena.list_query_executions¶
- awswrangler.athena.list_query_executions(workgroup: str | None = None, max_results: int | None = None, boto3_session: Session | None = None) list[str] ¶
Fetch list query execution IDs ran in specified workgroup or primary work group if not specified.
- Parameters:
workgroup (
str
|None
) – The name of the workgroup from which the query_id are being returned. If not specified, a list of available query execution IDs for the queries in the primary workgroup is returned.max_results (
int
|None
) – The maximum number of query execution IDs to return in this request. If not present, all execution IDs will be returned.boto3_session (
Session
|None
) – The default boto3 session will be used if boto3_session isNone
.
- Return type:
list
[str
]- Returns:
List of query execution IDs.
Examples
>>> import awswrangler as wr >>> res = wr.athena.list_query_executions(workgroup='workgroup-name')