AWS Security ChangesHomeSearch

AWS sns: SNS PublishBatch docs: rewording, size limit, and attributes heading

Service: sns · 2026-09-27 · Documentation low

File: sns/latest/dg/sns-batch-api-actions.md

Summary

Editorial edits to the Amazon SNS PublishBatch documentation page: streamlined the intro paragraph about batch publishing and split it into two paragraphs; changed the batch payload size limit from a hard-coded 262,144 bytes to the topic's configured MaximumMessageSize (default 262,144 bytes) with a link to large message payloads; reworded the description of batch IDs and FIFO MessageDeduplicationID/MessageGroupId requirements; and renamed the 'Message attributes' section heading to 'Publishing a message with attributes'.

Security assessment

The change is a documentation accuracy/clarity update (batch size limit now references the per-topic MaximumMessageSize, plus prose and heading rewording). It mentions IAM policies only as unchanged context ('The `PublishBatch` API uses the same `Publish` API action for IAM policies.') and introduces no vulnerability, credential, encryption, or access-control guidance, so it is non-security.

Evidence

+The total aggregate size of all messages that you send in a single `PublishBatch` API request cannot exceed the topic's configured `MaximumMessageSize` (default 262,144 bytes). For more information, see [Publishing large messages with Amazon SNS](./large-message-payloads.html).

Diff

diff --git a/sns/latest/dg/sns-batch-api-actions.md b/sns/latest/dg/sns-batch-api-actions.md
index 607087d6e..9f5b0ca24 100644
--- a//sns/latest/dg/sns-batch-api-actions.md
+++ b//sns/latest/dg/sns-batch-api-actions.md
@@ -13 +13,3 @@ What is message batching?How does message batching work?Examples
-An alternative to publishing messages to either Standard or FIFO topics in individual `Publish` API requests, is using the Amazon SNS `PublishBatch` API to publish up to 10 messages in a single API request. Sending messages in batches can help you reduce the costs associated with connecting distributed applications ([A2A messaging](./sns-system-to-system-messaging.html)) or sending notifications to people ([A2P messaging](./sns-user-notifications.html)) with Amazon SNS by a factor of up to 10. Amazon SNS has quotas on how many messages you can publish to a topic per second based on the region in which you operate. See the [Amazon SNS endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/sns.html) page in the _AWS General Reference_ guide for more information on API quotas.
+An alternative to publishing messages in individual `Publish` API requests is using the Amazon SNS `PublishBatch` API. You can publish up to 10 messages in a single API request to either Standard or FIFO topics. Sending messages in batches can reduce the costs associated with connecting distributed applications ([A2A messaging](./sns-system-to-system-messaging.html)) or sending notifications to people ([A2P messaging](./sns-user-notifications.html)) with Amazon SNS by a factor of up to 10.
+
+Amazon SNS has quotas on how many messages you can publish to a topic per second based on the Region in which you operate. See the [Amazon SNS endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/sns.html) page in the _AWS General Reference_ guide for more information on API quotas.
@@ -17 +19 @@ An alternative to publishing messages to either Standard or FIFO topics in indiv
-The total aggregate size of all messages that you send in a single `PublishBatch` API request can’t exceed 262,144 bytes (256 KiB).
+The total aggregate size of all messages that you send in a single `PublishBatch` API request cannot exceed the topic's configured `MaximumMessageSize` (default 262,144 bytes). For more information, see [Publishing large messages with Amazon SNS](./large-message-payloads.html).
@@ -23 +25,3 @@ The `PublishBatch` API uses the same `Publish` API action for IAM policies.
-Publishing messages with the `PublishBatch` API is similar to publishing messages with the `Publish` API. The main difference is that each message within a `PublishBatch` API request needs to be assigned a unique batch ID (up to 80 characters). This way, Amazon SNS can return individual API responses for every message within a batch to confirm that each message was either published or that a failure occurred. For messages being published to FIFO topics, in addition to including assigning a unique batch ID, you still need to include a `MessageDeduplicationID` and `MessageGroupId` for each individual message.
+Publishing messages with the `PublishBatch` API is similar to publishing messages with the `Publish` API. The main difference is that each message within a `PublishBatch` API request needs a unique batch ID (up to 80 characters). Amazon SNS uses this ID to return individual API responses for every message in a batch, confirming that each message was published or that a failure occurred.
+
+For messages published to FIFO topics, you also need to include a `MessageDeduplicationID` and `MessageGroupId` for each individual message in the batch.
@@ -156 +160 @@ To use the Amazon Web Services Documentation, Javascript must be enabled. Please
-Message attributes
+Publishing a message with attributes