Module Smaws_Client_CloudWatchLogs.PutLogEvents

Uploads a batch of log events to the specified log stream.

The sequence token is now ignored in PutLogEvents actions. PutLogEvents actions are always accepted and never return InvalidSequenceTokenException or DataAlreadyAcceptedException even if the sequence token is not valid. You can use parallel PutLogEvents actions on the same log stream.

The batch of events must satisfy the following constraints:

The quota of five requests per second per log stream has been removed. Instead, PutLogEvents actions are throttled based on a per-second per-account quota. You can request an increase to the per-second throttling quota by using the Service Quotas service.

If a call to PutLogEvents returns "UnrecognizedClientException" the most likely cause is a non-valid Amazon Web Services access key ID or secret key.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `DataAlreadyAcceptedException of Types.data_already_accepted_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSequenceTokenException of Types.invalid_sequence_token_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `UnrecognizedClientException of Types.unrecognized_client_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.put_log_events_request -> (Types.put_log_events_response, [> Smaws_Lib.Protocols.AwsJson.error | `DataAlreadyAcceptedException of Types.data_already_accepted_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSequenceTokenException of Types.invalid_sequence_token_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `UnrecognizedClientException of Types.unrecognized_client_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.put_log_events_request -> (Types.put_log_events_response Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `DataAlreadyAcceptedException of Types.data_already_accepted_exception | `InvalidParameterException of Types.invalid_parameter_exception | `InvalidSequenceTokenException of Types.invalid_sequence_token_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ServiceUnavailableException of Types.service_unavailable_exception | `UnrecognizedClientException of Types.unrecognized_client_exception ] * Smaws_Lib.Response.metadata) Stdlib.result