interface SnsProps
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SES.Actions.SnsProps |
Java | software.amazon.awscdk.services.ses.actions.SnsProps |
Python | aws_cdk.aws_ses_actions.SnsProps |
TypeScript (source) | @aws-cdk/aws-ses-actions » SnsProps |
Construction properties for a SNS action.
Example
import * as s3 from '@aws-cdk/aws-s3';
import * as actions from '@aws-cdk/aws-ses-actions';
const bucket = new s3.Bucket(this, 'Bucket');
const topic = new sns.Topic(this, 'Topic');
new ses.ReceiptRuleSet(this, 'RuleSet', {
rules: [
{
recipients: ['hello@aws.com'],
actions: [
new actions.AddHeader({
name: 'X-Special-Header',
value: 'aws',
}),
new actions.S3({
bucket,
objectKeyPrefix: 'emails/',
topic,
}),
],
},
{
recipients: ['aws.com'],
actions: [
new actions.Sns({
topic,
}),
],
},
],
});
Properties
Name | Type | Description |
---|---|---|
topic | ITopic | The SNS topic to notify. |
encoding? | Email | The encoding to use for the email within the Amazon SNS notification. |
topic
Type:
ITopic
The SNS topic to notify.
encoding?
Type:
Email
(optional, default: UTF-8)
The encoding to use for the email within the Amazon SNS notification.