View a markdown version of this page

Configuring the message signature version on Amazon SNS topics - Amazon Simple Notification Service
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Configuring the message signature version on Amazon SNS topics

Configuring the message signature version on Amazon SNS topics allows you to enhance the security and compatibility of your message verification process.

Select between SignatureVersion1 (SHA1) and SignatureVersion2 (SHA256) to control the hashing algorithm used for signing messages. Amazon SNS topics default to SignatureVersion1. You can configure this setting using the SetTopicAttributes API action.

Use the following example to set the topic attribute SignatureVersion using the Amazon CLI:

aws sns set-topic-attributes \ --topic-arn arn:aws-cn:sns:us-east-2:123456789012:MyTopic \ --attribute-name SignatureVersion \ --attribute-value 2