ReceiptRuleSetProps Struct
Construction properties for a ReceiptRuleSet.
Example
ts
import * as cdk from 'aws-cdk-lib';
import * as ses from 'aws-cdk-lib/aws-ses';
import { CustomResourceConfig } from 'aws-cdk-lib/custom-resources';
const app = new cdk.App();
const stack = new cdk.Stack(app, 'Stack');
CustomResourceConfig.of(app).addLogRetentionLifetime(logs.RetentionDays.TEN_YEARS);
CustomResourceConfig.of(app).addRemovalPolicy(cdk.RemovalPolicy.DESTROY);
new ses.ReceiptRuleSet(app, 'RuleSet', {
dropSpam: true,
});
Properties
Whether to add a first rule to stop processing messages that have at least one spam indicator.
receiptRuleSetNamestringreceipt_rule_set_namestrreceiptRuleSetNameStringReceiptRuleSetNamestringReceiptRuleSetName*string= A CloudFormation generated name.#The name for the receipt rule set.
rulesReceiptRuleOptions[]rulestyping.List[ReceiptRuleOptions]rulesList<ReceiptRuleOptions>RulesReceiptRuleOptions[]Rules*[]ReceiptRuleOptions= No rules are added to the rule s…#The list of rules to add to this rule set.
Rules are added in the same order as they appear in the list.
default
Default: No rules are added to the rule set.