Class ReceiptRuleSetProps
Construction properties for a ReceiptRuleSet.
Inheritance
System.Object
ReceiptRuleSetProps
Implements
Namespace: Amazon.CDK.AWS.SES
Assembly: Amazon.CDK.AWS.SES.dll
Syntax (csharp)
public class ReceiptRuleSetProps : Object, IReceiptRuleSetProps
Syntax (vb)
Public Class ReceiptRuleSetProps
Inherits Object
Implements IReceiptRuleSetProps
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
ReceiptRuleSetProps() |
Properties
DropSpam | Whether to add a first rule to stop processing messages that have at least one spam indicator. |
ReceiptRuleSetName | The name for the receipt rule set. |
Rules | The list of rules to add to this rule set. |
Constructors
ReceiptRuleSetProps()
public ReceiptRuleSetProps()
Properties
DropSpam
Whether to add a first rule to stop processing messages that have at least one spam indicator.
public Nullable<bool> DropSpam { get; set; }
Property Value
System.Nullable<System.Boolean>
Remarks
Default: false
ReceiptRuleSetName
The name for the receipt rule set.
public string ReceiptRuleSetName { get; set; }
Property Value
System.String
Remarks
Default: - A CloudFormation generated name.
Rules
The list of rules to add to this rule set.
public IReceiptRuleOptions[] Rules { get; set; }
Property Value
Remarks
Rules are added in the same order as they appear in the list.
Default: - No rules are added to the rule set.