1 Answer
- Newest
- Most votes
- Most comments
0
To retrieve and save query history programmatically:
- Use Athena ListQueryExecutions API action or the list-query-executions CLI command to retrieve the query IDs.
- Use the Athena GetQueryExecution API action or the get-query-execution CLI command to retrieve information about each query based on its ID.
- Use the Amazon S3 PutObject API action or the put-object CLI command to save the information in Amazon S3.
Please check Working with Query Results, Output Files, and Query History for more details.
answered 6 years ago
Relevant content
asked 7 years ago
asked 2 years ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
