Module Smaws_Client_CloudTrail.CancelQuery

val request : Smaws_Lib.Context.t -> cancel_query_request -> (cancel_query_response, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of conflict_exception | `EventDataStoreARNInvalidException of event_data_store_arn_invalid_exception | `EventDataStoreNotFoundException of event_data_store_not_found_exception | `InactiveEventDataStoreException of inactive_event_data_store_exception | `InactiveQueryException of inactive_query_exception | `InvalidParameterException of invalid_parameter_exception | `NoManagementAccountSLRExistsException of no_management_account_slr_exists_exception | `OperationNotPermittedException of operation_not_permitted_exception | `QueryIdNotFoundException of query_id_not_found_exception | `UnsupportedOperationException of unsupported_operation_exception ]) Stdlib.result

Cancels a query if the query is not in a terminated state, such as CANCELLED, FAILED, TIMED_OUT, or FINISHED. You must specify an ARN value for EventDataStore. The ID of the query that you want to cancel is also required. When you run CancelQuery, the query status might show as CANCELLED even if the operation is not yet finished.