Module Smaws_Client_CloudTrail.CancelQuery

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.

val request : Smaws_Lib.Context.t -> Types.cancel_query_request -> (Types.cancel_query_response, [> Smaws_Lib.Protocols.AwsJson.error | `ConflictException of Types.conflict_exception | `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 | `InactiveQueryException of Types.inactive_query_exception | `InvalidParameterException of Types.invalid_parameter_exception | `NoManagementAccountSLRExistsException of Types.no_management_account_slr_exists_exception | `OperationNotPermittedException of Types.operation_not_permitted_exception | `QueryIdNotFoundException of Types.query_id_not_found_exception | `UnsupportedOperationException of Types.unsupported_operation_exception ]) Stdlib.result