awswrangler.athena.list_prepared_statements¶
- awswrangler.athena.list_prepared_statements(workgroup: str | None = None, boto3_session: Session | None = None) List[str] ¶
List the prepared statements in the specified workgroup.
Note
This function has arguments which can be configured globally through wr.config or environment variables:
workgroup
Check out the Global Configurations Tutorial for details.
- Parameters:
workgroup (str, optional) – The name of the workgroup to which the prepared statement belongs.
boto3_session (boto3.Session(), optional) – Boto3 Session. The default boto3 session will be used if boto3_session receive None.
- Returns:
List of prepared statements in the workgroup. Each item is a dictionary with the keys
StatementName
andLastModifiedTime
.- Return type:
List[Dict[str, Any]]