Skip to content

ActiveReceiptRuleSet

Source: src/AWS/SES/ActiveReceiptRuleSet.ts

The account’s active Amazon SES receipt rule set — the single rule set (per account, per region) that SES actually evaluates against inbound mail.

This is an account-level singleton pointer, not a container: only one rule set can be active at a time. Deleting this resource deactivates email receiving (clears the pointer) only when the account is still pointed at the rule set this resource set; if something else has since become active, the delete is a no-op.

import * as SES from "alchemy/AWS/SES";
const ruleSet = yield* SES.ReceiptRuleSet("Inbound", {});
const active = yield* SES.ActiveReceiptRuleSet("Active", {
ruleSetName: ruleSet.ruleSetName,
});