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
dropSpamoptionalbooleandrop_spamoptionalbooldropSpamoptionalBooleanDropSpamoptionalboolDropSpamoptional*bool= false#Whether to add a first rule to stop processing messages that have at least one spam indicator.
receiptRuleSetNameoptionalstringreceipt_rule_set_nameoptionalstrreceiptRuleSetNameoptionalStringReceiptRuleSetNameoptionalstringReceiptRuleSetNameoptional*string#The name for the receipt rule set.
Default: A CloudFormation generated name.
rulesoptionalReceiptRuleOptions[]rulesoptionaltyping.List[ReceiptRuleOptions]rulesoptionalList<ReceiptRuleOptions>RulesoptionalReceiptRuleOptions[]Rulesoptional*[]ReceiptRuleOptions#The list of rules to add to this rule set.
Default: No rules are added to the rule set.
Rules are added in the same order as they appear in the list.