awswrangler.athena.list_prepared_statements¶
- awswrangler.athena.list_prepared_statements(workgroup: str = 'primary', 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) – The name of the workgroup to which the prepared statement belongs. Primary by default.
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]]