aws.cloudtrail.list_queries
Example SQL Queries
SELECT * FROMaws.cloudtrail.list_queriesWHERE"event_data_store" = 'VALUE';Description
Returns a list of queries and query statuses for the past seven days. You must specify an ARN value for EventDataStore. Optionally, to shorten the list of results, you can specify a time range, formatted as timestamps, by adding StartTime and EndTime parameters, and a QueryStatus value. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED.
Table Definition
| Column Name | Column Data Type |
|---|---|
| event_data_store Required Input Column The ARN (or the ID suffix of the ARN) of an event data store on which queries were run. | VARCHAR |
| end_time Input Column Use with StartTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period. | TIMESTAMP_S |
| max_results Input Column The maximum number of queries to show on a page. | BIGINT |
| next_token Input Column A token you can use to get the next page of results. | VARCHAR |
| query_status Input Column The status of queries that you want to return in results. Valid values for QueryStatus include QUEUED, RUNNING, FINISHED, FAILED, TIMED_OUT, or CANCELLED. | VARCHAR |
| start_time Input Column Use with EndTime to bound a ListQueries request, and limit its results to only those queries run within a specified time period. | TIMESTAMP_S |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| queries Lists matching query results, and shows query ID, status, and creation time of each query. | STRUCT( |
Show child fields
| |