Class SnsProps
Construction properties for a SNS action.
Inheritance
System.Object
SnsProps
Implements
Namespace: Amazon.CDK.AWS.SES.Actions
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class SnsProps : Object, ISnsProps
Syntax (vb)
Public Class SnsProps
Inherits Object
Implements ISnsProps
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.S3;
using Amazon.CDK.AWS.SES.Actions;
var bucket = new Bucket(this, "Bucket");
var topic = new Topic(this, "Topic");
new ReceiptRuleSet(this, "RuleSet", new ReceiptRuleSetProps {
Rules = new [] { new ReceiptRuleOptions {
Recipients = new [] { "hello@aws.com" },
Actions = new [] {
new AddHeader(new AddHeaderProps {
Name = "X-Special-Header",
Value = "aws"
}),
new S3(new S3Props {
Bucket = bucket,
ObjectKeyPrefix = "emails/",
Topic = topic
}) }
}, new ReceiptRuleOptions {
Recipients = new [] { "aws.com" },
Actions = new [] {
new Sns(new SnsProps {
Topic = topic
}) }
} }
});
Synopsis
Constructors
SnsProps() |
Properties
Encoding | The encoding to use for the email within the Amazon SNS notification. |
Topic | The SNS topic to notify. |
Constructors
SnsProps()
public SnsProps()
Properties
Encoding
The encoding to use for the email within the Amazon SNS notification.
public Nullable<EmailEncoding> Encoding { get; set; }
Property Value
System.Nullable<EmailEncoding>
Remarks
Default: UTF-8