From 9c3d14c059efe5b58ff9819c50fcde7143581704 Mon Sep 17 00:00:00 2001 From: AsyncAws <61784373+async-aws-bot@users.noreply.github.com> Date: Thu, 6 Jun 2024 23:59:24 -0700 Subject: [PATCH] Update generated code (#1722) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * update generated code * Update src/Service/LocationService/CHANGELOG.md --------- Co-authored-by: Jérémy Derussé --- CHANGELOG.md | 1 + src/Input/SendMessageRequest.php | 8 +++++--- src/SqsClient.php | 16 ++++++++++------ 3 files changed, 16 insertions(+), 9 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8538e6f..b9e600d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Changed - Add `Accept: application/json` header in request to fix incompatibility with 3rd party providers +- AWS enhancement: Documentation updates. ## 2.1.0 diff --git a/src/Input/SendMessageRequest.php b/src/Input/SendMessageRequest.php index a9ff562..f326991 100644 --- a/src/Input/SendMessageRequest.php +++ b/src/Input/SendMessageRequest.php @@ -26,12 +26,14 @@ final class SendMessageRequest extends Input /** * The message to send. The minimum size is one character. The maximum size is 256 KiB. * - * ! A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed: + * ! 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 [^1]. * ! * ! `#x9` | `#xA` | `#xD` | `#x20` to `#xD7FF` | `#xE000` to `#xFFFD` | `#x10000` to `#x10FFFF` * ! - * ! Any characters not included in this list will be rejected. For more information, see the W3C specification for - * ! characters [^1]. + * ! 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. * * [^1]: http://www.w3.org/TR/REC-xml/#charsets * diff --git a/src/SqsClient.php b/src/SqsClient.php index d51523d..2d93069 100644 --- a/src/SqsClient.php +++ b/src/SqsClient.php @@ -680,12 +680,14 @@ public function receiveMessage($input): ReceiveMessageResult /** * Delivers a message to the specified queue. * - * ! A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed: + * ! 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 [^1]. * ! * ! `#x9` | `#xA` | `#xD` | `#x20` to `#xD7FF` | `#xE000` to `#xFFFD` | `#x10000` to `#x10FFFF` * ! - * ! Any characters not included in this list will be rejected. For more information, see the W3C specification for - * ! characters [^1]. + * ! 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. * * [^1]: http://www.w3.org/TR/REC-xml/#charsets * @@ -751,12 +753,14 @@ public function sendMessage($input): SendMessageResult * The maximum allowed individual message size and the maximum total payload size (the sum of the individual lengths of * all of the batched messages) are both 256 KiB (262,144 bytes). * - * ! A message can include only XML, JSON, and unformatted text. The following Unicode characters are allowed: + * ! 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 [^1]. * ! * ! `#x9` | `#xA` | `#xD` | `#x20` to `#xD7FF` | `#xE000` to `#xFFFD` | `#x10000` to `#x10FFFF` * ! - * ! Any characters not included in this list will be rejected. For more information, see the W3C specification for - * ! characters [^1]. + * ! 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. * * If you don't specify the `DelaySeconds` parameter for an entry, Amazon SQS uses the default value for the queue. *