Module Smaws_Client_SQS.SendMessage

val request : Smaws_Lib.Context.t -> send_message_request -> (send_message_result, [> Smaws_Lib.Protocols.AwsJson.error | `InvalidAddress of invalid_address | `InvalidMessageContents of invalid_message_contents | `InvalidSecurity of invalid_security | `KmsAccessDenied of kms_access_denied | `KmsDisabled of kms_disabled | `KmsInvalidKeyUsage of kms_invalid_key_usage | `KmsInvalidState of kms_invalid_state | `KmsNotFound of kms_not_found | `KmsOptInRequired of kms_opt_in_required | `KmsThrottled of kms_throttled | `QueueDoesNotExist of queue_does_not_exist | `RequestThrottled of request_throttled | `UnsupportedOperation of unsupported_operation ]) Stdlib.result

Delivers a message to the specified queue.

A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed. For more information, see the W3C specification for characters.

#x9 | #xA | #xD | #x20 to #xD7FF | #xE000 to #xFFFD | #x10000 to #x10FFFF

Amazon SQS does not throw an exception or completely reject the message if it contains invalid characters. Instead, it replaces those invalid characters with U+FFFD before storing the message in the queue, as long as the message body contains at least one valid character.