get_query_results
Get the results of a completed CloudTrail Lake query with pagination support.
This tool retrieves the results of a previously executed CloudTrail Lake query. It supports pagination for large result sets, allowing you to fetch results in chunks.
Usage: Use this tool to get the results of a query that has completed (status = 'FINISHED'). For large result sets, use the next_token to fetch subsequent pages of results.
Pagination workflow:
- Call get_query_results with just the query_id to get the first page
- If next_token is returned, call again with the same query_id and the next_token
- Repeat until next_token is null/empty
Returns: -------- QueryResult containing:
- query_id: The query identifier
- query_status: Current status of the query
- query_result_rows: Results for this page
- next_token: Token for next page (null if no more pages)
- query_statistics: Performance statistics for the query