Module Values.PutQueryDefinitionResponseSource

Creates or updates a query definition for CloudWatch Logs Insights. For more information, see Analyzing Log Data with CloudWatch Logs Insights. To update a query definition, specify its queryDefinitionId in your request. The values of name, queryString, and logGroupNames are changed to the values that you specify in your update operation. No current values are retained from the current query definition. For example, imagine updating a current query definition that includes log groups. If you don't specify the logGroupNames parameter in your update operation, the query definition changes to contain no log groups. You must have the logs:PutQueryDefinition permission to be able to perform this operation.

Sourcetype nonrec t = {
  1. queryDefinitionId : QueryId.t option;
    (*

    The ID of the query definition.

    *)
}
Sourcetype nonrec error = [
  1. | `InvalidParameterException of InvalidParameterException.t
  2. | `LimitExceededException of LimitExceededException.t
  3. | `ResourceNotFoundException of ResourceNotFoundException.t
  4. | `ServiceUnavailableException of ServiceUnavailableException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?queryDefinitionId:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InvalidParameterException of unit | `LimitExceededException of unit | `ResourceNotFoundException of unit | `ServiceUnavailableException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InvalidParameterException of unit | `LimitExceededException of unit | `ResourceNotFoundException of unit | `ServiceUnavailableException of unit | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `String of QueryId.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t