ReceiptRuleSet
Source:
src/AWS/SES/ReceiptRuleSet.ts
An Amazon SES receipt rule set — the ordered container for the receipt rules that decide what happens to inbound email (deliver to S3, invoke a Lambda, publish to SNS, bounce, etc.).
A rule set is an empty container on creation; add SES.ReceiptRules to it
and point the account at it with SES.ActiveReceiptRuleSet to start
processing mail. Email receiving is only available in a subset of regions
(e.g. us-east-1, us-west-2, eu-west-1).
Creating Rule Sets
Section titled “Creating Rule Sets”Basic Rule Set
import * as SES from "alchemy/AWS/SES";
const ruleSet = yield* SES.ReceiptRuleSet("Inbound", {});Named Rule Set
const ruleSet = yield* SES.ReceiptRuleSet("Inbound", { ruleSetName: "my-inbound-rules",});Activating a Rule Set
Section titled “Activating a Rule Set”const ruleSet = yield* SES.ReceiptRuleSet("Inbound", {});yield* SES.ActiveReceiptRuleSet("Active", { ruleSetName: ruleSet.ruleSetName,});