interface ReceiptRuleSetProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SES.ReceiptRuleSetProps |
Java | software.amazon.awscdk.services.ses.ReceiptRuleSetProps |
Python | aws_cdk.aws_ses.ReceiptRuleSetProps |
TypeScript (source) | @aws-cdk/aws-ses » ReceiptRuleSetProps |
Construction properties for a ReceiptRuleSet.
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 |
|---|---|---|
| drop | boolean | Whether to add a first rule to stop processing messages that have at least one spam indicator. |
| receipt | string | The name for the receipt rule set. |
| rules? | Receipt[] | The list of rules to add to this rule set. |
dropSpam?
Type:
boolean
(optional, default: false)
Whether to add a first rule to stop processing messages that have at least one spam indicator.
receiptRuleSetName?
Type:
string
(optional, default: A CloudFormation generated name.)
The name for the receipt rule set.
rules?
Type:
Receipt[]
(optional, default: No rules are added to the rule set.)
The list of rules to add to this rule set.
Rules are added in the same order as they appear in the list.

.NET
Java
Python
TypeScript (