AWS Security ChangesHomeSearch

AWS sns: Editorial rewording of SNS HTTP/HTTPS endpoint preparation guide

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

File: sns/latest/dg/SendMessageToHttp.prepare.md

Summary

Copy-editing and sentence simplification throughout the guide for preparing HTTP/HTTPS endpoints to receive Amazon SNS messages. No new technical or security content is introduced; existing guidance on message-type headers, JSON parsing, signature verification, retries, and HTTPS certificates is only rephrased.

Security assessment

The diff only rewords existing prose (e.g., 'Using information contained in' -> 'Using information in', 'will send' -> 'sends'). The signature-verification and HTTPS certificate guidance already existed and is not newly added or strengthened, so this is a non-security editorial change.

Evidence

  3. Your code should verify the authenticity of a notification, subscription confirmation, or unsubscribe confirmation message sent by Amazon SNS. Using information in the Amazon SNS message, your endpoint can recreate the signature. Then you can verify the contents of the message by matching your signature with the one that Amazon SNS sent.

Diff

diff --git a/sns/latest/dg/SendMessageToHttp.prepare.md b/sns/latest/dg/SendMessageToHttp.prepare.md
index 411155038..3435c36be 100644
--- a//sns/latest/dg/SendMessageToHttp.prepare.md
+++ b//sns/latest/dg/SendMessageToHttp.prepare.md
@@ -9 +9 @@
-Before you subscribe your HTTP or HTTPS endpoint to a topic, you must make sure that the HTTP or HTTPS endpoint has the capability to handle the HTTP POST requests that Amazon SNS uses to send the subscription confirmation and notification messages. Usually, this means creating and deploying a web application (for example, a Java servlet if your endpoint host is running Linux with Apache and Tomcat) that processes the HTTP requests from Amazon SNS. When you subscribe an HTTP endpoint, Amazon SNS sends it a subscription confirmation request. Your endpoint must be prepared to receive and process this request when you create the subscription because Amazon SNS sends this request at that time. Amazon SNS will not send notifications to the endpoint until you confirm the subscription. Once you confirm the subscription, Amazon SNS will send notifications to the endpoint when a publish action is performed on the subscribed topic.
+Before you subscribe your HTTP or HTTPS endpoint to a topic, you must make sure the endpoint can handle the HTTP POST requests that Amazon SNS uses to send the subscription confirmation and notification messages. Usually, this means creating and deploying a web application that processes the HTTP requests from Amazon SNS. For example, use a Java servlet if your endpoint host runs Linux with Apache and Tomcat. When you subscribe an HTTP endpoint, Amazon SNS sends it a subscription confirmation request. Your endpoint must be prepared to receive and process this request when you create the subscription. Amazon SNS sends this request at that time. Amazon SNS will not send notifications to the endpoint until you confirm the subscription. After you confirm, Amazon SNS sends notifications to the endpoint when a publish action is performed on the topic.
@@ -13 +13 @@ Before you subscribe your HTTP or HTTPS endpoint to a topic, you must make sure
-  1. Your code should read the HTTP headers of the HTTP POST requests that Amazon SNS sends to your endpoint. Your code should look for the header field `x-amz-sns-message-type`, which tells you the type of message that Amazon SNS has sent to you. By looking at the header, you can determine the message type without having to parse the body of the HTTP request. There are two types that you need to handle: `SubscriptionConfirmation` and `Notification`. The `UnsubscribeConfirmation` message is used only when the subscription is deleted from the topic.
+  1. Your code should read the HTTP headers of the HTTP POST requests that Amazon SNS sends to your endpoint. Your code should look for the header field `x-amz-sns-message-type`. This field tells you the type of message that Amazon SNS has sent to you. By looking at the header, you can determine the message type without parsing the body of the HTTP request. There are two types that you need to handle: `SubscriptionConfirmation` and `Notification`. The `UnsubscribeConfirmation` message is used only when the subscription is deleted from the topic.
@@ -40 +40 @@ For details about the HTTP header, see [HTTP/HTTPS headers](./http-header.html).
-  2. Your code should parse the JSON document in the body of the HTTP POST request and content-type text/plain to read the name-value pairs that make up the Amazon SNS message. Use a JSON parser that handles converting the escaped representation of control characters back to their ASCII character values (for example, converting \n to a newline character). You can use an existing JSON parser such as the [Jackson JSON Processor](https://github.com/FasterXML/jackson) or write your own. In order to send the text in the subject and message fields as valid JSON, Amazon SNS must convert some control characters to escaped representations that can be included in the JSON document. When you receive the JSON document in the body of the POST request sent to your endpoint, you must convert the escaped characters back to their original character values if you want an exact representation of the original subject and messages published to the topic. This is critical if you want to verify the signature of a notification because the signature uses the message and subject in their original forms as part of the string to sign.
+  2. Your code should parse the JSON document in the body of the HTTP POST request and content-type text/plain to read the name-value pairs that make up the Amazon SNS message. Use a JSON parser that handles converting the escaped representation of control characters back to their ASCII character values (for example, converting \n to a newline character). You can use an existing JSON parser such as the [Jackson JSON Processor](https://github.com/FasterXML/jackson) or write your own. To send the text in the subject and message fields as valid JSON, Amazon SNS must convert some control characters to escaped representations that can be included in the JSON document. When you receive the JSON document in the body of the POST request, you must convert the escaped characters back to their original character values. Do this if you want an exact representation of the original subject and messages published to the topic. This is critical if you want to verify the signature of a notification. The signature uses the message and subject in their original forms as part of the string to sign.
@@ -42 +42 @@ For details about the HTTP header, see [HTTP/HTTPS headers](./http-header.html).
-  3. Your code should verify the authenticity of a notification, subscription confirmation, or unsubscribe confirmation message sent by Amazon SNS. Using information contained in the Amazon SNS message, your endpoint can recreate the signature so that you can verify the contents of the message by matching your signature with the signature that Amazon SNS sent with the message. For more information about verifying the signature of a message, see [Verifying the signatures of Amazon SNS messages](./sns-verify-signature-of-message.html).
+  3. Your code should verify the authenticity of a notification, subscription confirmation, or unsubscribe confirmation message sent by Amazon SNS. Using information in the Amazon SNS message, your endpoint can recreate the signature. Then you can verify the contents of the message by matching your signature with the one that Amazon SNS sent. For more information about verifying the signature of a message, see [Verifying the signatures of Amazon SNS messages](./sns-verify-signature-of-message.html).
@@ -93 +93 @@ For details about the format of the `Notification` message, see [HTTP/HTTPS head
-  5. Make sure that your endpoint responds to the HTTP POST message from Amazon SNS with the appropriate status code. The connection will time out in approximately 15 seconds. If your endpoint does not respond before the connection times out, or if your endpoint returns a status code outside the range of 200–4 _xx_ , Amazon SNS will consider the delivery of the message as a failed attempt.
+  5. Make sure your endpoint responds to the HTTP POST message from Amazon SNS with the appropriate status code. The connection times out in about 15 seconds. If your endpoint does not respond in time, Amazon SNS considers the delivery a failed attempt. The same applies if your endpoint returns a status code outside the range of 200–4 _xx_.
@@ -95 +95 @@ For details about the format of the `Notification` message, see [HTTP/HTTPS head
-  6. Make sure that your code can handle message delivery retries from Amazon SNS. If Amazon SNS doesn't receive a successful response from your endpoint, it attempts to deliver the message again. This applies to all messages, including the subscription confirmation message. By default, if the initial delivery of the message fails, Amazon SNS attempts up to three retries with a delay between failed attempts set at 20 seconds.
+  6. Make sure your code can handle message delivery retries from Amazon SNS. If Amazon SNS doesn't receive a successful response from your endpoint, it attempts to deliver the message again. This applies to all messages, including the subscription confirmation message. By default, if the initial delivery fails, Amazon SNS attempts up to three retries with a delay between failed attempts set at 20 seconds.
@@ -99 +99 @@ For details about the format of the `Notification` message, see [HTTP/HTTPS head
-The message request times out after approximately 15 seconds. This means that, if the message delivery failure is caused by a timeout, Amazon SNS retries for approximately 35 seconds after the previous delivery attempt. You can set a different delivery policy for the endpoint.
+The message request times out after about 15 seconds. So if the delivery failure is caused by a timeout, Amazon SNS retries about 35 seconds after the previous attempt. You can set a different delivery policy for the endpoint.
@@ -101 +101 @@ The message request times out after approximately 15 seconds. This means that, i
-Amazon SNS uses the `x-amz-sns-message-id` header field to uniquely identify each message published to an Amazon SNS topic. By comparing the IDs of the messages you have processed with incoming messages, you can determine whether the message is a retry attempt.
+Amazon SNS uses the `x-amz-sns-message-id` header field to identify each message published to an Amazon SNS topic. By comparing the IDs of processed messages with incoming messages, you can determine whether the message is a retry attempt.
@@ -103 +103 @@ Amazon SNS uses the `x-amz-sns-message-id` header field to uniquely identify eac
-  7. If you are subscribing an HTTPS endpoint, make sure that your endpoint has a server certificate from a trusted Certificate Authority (CA). Amazon SNS will only send messages to HTTPS endpoints that have a server certificate signed by a CA trusted by Amazon SNS.
+  7. If you are subscribing an HTTPS endpoint, make sure your endpoint has a server certificate from a trusted Certificate Authority (CA). Amazon SNS will only send messages to HTTPS endpoints that have a server certificate signed by a CA trusted by Amazon SNS.