Posted On: Mar 27, 2023

Amazon Simple Notification Service (Amazon SNS) now supports setting content-type request headers for HTTP/S notifications. This enables your topic subscribers to create a DeliveryPolicy that specifies the content-type value that Amazon SNS assigns to their HTTP/S notifications, such as application/json, application/xml, or text/plain. With this launch, applications can receive their notifications in a more predictable format.

Amazon SNS provides high-throughput, push-based, many-to-many messaging between distributed systems, microservices, and event-driven serverless applications. These applications include Amazon Simple Queue Service, Amazon Kinesis Data Firehose, Amazon Lambda, and HTTP/S endpoints.

Amazon SNS enhanced HTTP content-type header support is available in the Amazon Web Services China (Ningxia) Region, operated by NWCD, and the Amazon Web Services China (Beijing) Region, operated by Sinnet. You can start using this new capability today, via the Amazon Web Services Management Console, Amazon Developer Tools (SDK), Amazon SNS Command Line Interface (CLI), and the Amazon SNS Application Programming Interface (API). You may also provision your Amazon SNS subscription filter policies via Amazon CloudFormation.

To learn more about Amazon SNS content-type request headers for HTTP/S notifications, see the following: