Smaws_Client_CloudTrail.GenerateQuery
Generates a query from a natural language prompt. This operation uses generative artificial intelligence (generative AI) to produce a ready-to-use SQL query from the prompt.
The prompt can be a question or a statement about the event data in your event data store. For example, you can enter prompts like "What are my top errors in the past month?" and “Give me a list of users that used SNS.”
The prompt must be in English. For information about limitations, permissions, and supported Regions, see Create CloudTrail Lake queries from natural language prompts in the CloudTrail user guide.
Do not include any personally identifying, confidential, or sensitive information in your prompts.
This feature uses generative AI large language models (LLMs); we recommend double-checking the LLM response.
val request :
Smaws_Lib.Context.t ->
Types.generate_query_request ->
(Types.generate_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
| `GenerateResponseException of Types.generate_response_exception
| `InactiveEventDataStoreException of
Types.inactive_event_data_store_exception
| `InvalidParameterException of Types.invalid_parameter_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