Smaws_Client_CloudTrail.ListQueries
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
.
val request :
Smaws_Lib.Context.t ->
Types.list_queries_request ->
(Types.list_queries_response,
[> Smaws_Lib.Protocols.AwsJson.error
| `EventDataStoreARNInvalidException of
Types.event_data_store_arn_invalid_exception
| `EventDataStoreNotFoundException of
Types.event_data_store_not_found_exception
| `InactiveEventDataStoreException of
Types.inactive_event_data_store_exception
| `InvalidDateRangeException of Types.invalid_date_range_exception
| `InvalidMaxResultsException of Types.invalid_max_results_exception
| `InvalidNextTokenException of Types.invalid_next_token_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidQueryStatusException of Types.invalid_query_status_exception
| `NoManagementAccountSLRExistsException of
Types.no_management_account_slr_exists_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `UnsupportedOperationException of Types.unsupported_operation_exception ])
Stdlib.result