AWS CloudFormation
User Guide (API Version 2010-05-15)

Amazon Simple Email Service ReceiptRule SNSAction

The SNSAction property type includes an action in an Amazon SES receipt rule that publishes a notification to Amazon SNS.

If you own the Amazon SNS topic, you don't need to do anything to give Amazon SES permission to publish emails to it. However, if you don't own the Amazon SNS topic, you need to attach a policy to the topic to give Amazon SES permissions to access it. For information about giving permissions, see Giving Permissions to Amazon SES for Email Receiving in the Amazon Simple Email Service Developer Guide.

Important

You can only publish emails that are 150 KB or less (including the header) to Amazon SNS. Larger emails will bounce. If you anticipate emails larger than 150 KB, use the S3 action instead.

For more information, see SNS Action in the Amazon Simple Email Service Developer Guide.

SNSAction is a property of the Amazon Simple Email Service ReceiptRule Action property type.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "TopicArn" : String, "Encoding" : String }

YAML

TopicArn: String Encoding: String

Properties

Encoding

The encoding to use for the email within the Amazon SNS notification. UTF-8 is easier to use, but may not preserve all special characters when a message was encoded with a different encoding format. Base64 preserves all special characters. The default value is UTF-8.

Valid values include Base64 and UTF-8.

Required: No

Type: String

Update requires: No interruption

TopicArn

The Amazon Resource Name (ARN) of the Amazon SNS topic to notify. An example of an Amazon SNS topic ARN is arn:aws:sns:us-west-2:123456789012:MyTopic.

Required: No

Type: String

Update requires: No interruption

See Also

On this page: