Module Smaws_Client_SQS.SendMessage

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

If a message contains characters outside the allowed set, Amazon SQS rejects the message and returns an InvalidMessageContents error. Ensure that your message body includes only valid characters to avoid this exception.

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