# SNSActionProperty

The action to publish the email content to an Amazon SNS topic.

When executed, this action will send the email as a notification to the specified SNS topic.

- Source: Generated code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ses as ses } from 'aws-cdk-lib';
const sNSActionProperty: ses.CfnReceiptRule.SNSActionProperty = {
  encoding: 'encoding',
  topicArn: 'topicArn',
};
```

## Properties

- `encoding`: string — The encoding to use for the email within the Amazon SNS notification.

  The default value is `UTF-8` . Use `BASE64` if you need to preserve all special characters, especially when the original message uses a different encoding format.

- `topicArn`: string — The Amazon Resource Name (ARN) of the Amazon SNS Topic to which notification for the email received will be published.
