awswrangler.athena.list_prepared_statements¶
- awswrangler.athena.list_prepared_statements(workgroup: str = 'primary', boto3_session: Session | None = None) list[dict[str, Any]] ¶
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 (
Session
|None
) – The default boto3 session will be used if boto3_session receiveNone
.
- Return type:
list
[dict
[str
,Any
]]- Returns:
List of prepared statements in the workgroup. Each item is a dictionary with the keys
StatementName
andLastModifiedTime
.