Smaws_Client_CloudTrail.StartQuery
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.
val request :
Smaws_Lib.Context.t ->
Types.start_query_request ->
(Types.start_query_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
| `InsufficientEncryptionPolicyException of
Types.insufficient_encryption_policy_exception
| `InsufficientS3BucketPolicyException of
Types.insufficient_s3_bucket_policy_exception
| `InvalidParameterException of Types.invalid_parameter_exception
| `InvalidQueryStatementException of
Types.invalid_query_statement_exception
| `InvalidS3BucketNameException of Types.invalid_s3_bucket_name_exception
| `InvalidS3PrefixException of Types.invalid_s3_prefix_exception
| `MaxConcurrentQueriesException of Types.max_concurrent_queries_exception
| `NoManagementAccountSLRExistsException of
Types.no_management_account_slr_exists_exception
| `OperationNotPermittedException of
Types.operation_not_permitted_exception
| `S3BucketDoesNotExistException of
Types.s3_bucket_does_not_exist_exception
| `UnsupportedOperationException of Types.unsupported_operation_exception ])
Stdlib.result