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 4 years ago
Relevant content
- asked 5 years ago
- AWS OFFICIALUpdated 7 months ago
- AWS OFFICIALUpdated 6 months ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago