Module Smaws_Client_CloudTrail.StartQuery

val request : Smaws_Lib.Context.t -> start_query_request -> (start_query_response, [> Smaws_Lib.Protocols.AwsJson.error | `EventDataStoreARNInvalidException of event_data_store_arn_invalid_exception | `EventDataStoreNotFoundException of event_data_store_not_found_exception | `InactiveEventDataStoreException of inactive_event_data_store_exception | `InsufficientEncryptionPolicyException of insufficient_encryption_policy_exception | `InsufficientS3BucketPolicyException of insufficient_s3_bucket_policy_exception | `InvalidParameterException of invalid_parameter_exception | `InvalidQueryStatementException of invalid_query_statement_exception | `InvalidS3BucketNameException of invalid_s3_bucket_name_exception | `InvalidS3PrefixException of invalid_s3_prefix_exception | `MaxConcurrentQueriesException of max_concurrent_queries_exception | `NoManagementAccountSLRExistsException of no_management_account_slr_exists_exception | `OperationNotPermittedException of operation_not_permitted_exception | `S3BucketDoesNotExistException of s3_bucket_does_not_exist_exception | `UnsupportedOperationException of unsupported_operation_exception ]) Stdlib.result

Starts a CloudTrail Lake query. Use the QueryStatement parameter to provide your SQL query, enclosed in single quotation marks. Use the optional DeliveryS3Uri parameter to deliver the query results to an S3 bucket.

StartQuery requires you specify either the QueryStatement parameter, or a QueryAlias and any QueryParameters. In the current release, the QueryAlias and QueryParameters parameters are used only for the queries that populate the CloudTrail Lake dashboards.