IngressPoint
Source:
src/AWS/MailManager/IngressPoint.ts
An SES Mail Manager ingress point — the SMTP endpoint that receives incoming email, screens it with a traffic policy, and processes it with a rule set.
type and networkConfiguration are immutable (changes replace the
endpoint); everything else updates in place.
Creating Ingress Points
Section titled “Creating Ingress Points”Open Ingress Point
import * as MailManager from "alchemy/AWS/MailManager";
const ruleSet = yield* MailManager.RuleSet("Inbound", { rules: [{ Name: "DropAll", Actions: [{ Drop: {} }] }],});const trafficPolicy = yield* MailManager.TrafficPolicy("Edge", { defaultAction: "ALLOW",});const ingress = yield* MailManager.IngressPoint("Smtp", { type: "OPEN", ruleSetId: ruleSet.ruleSetId, trafficPolicyId: trafficPolicy.trafficPolicyId,});// point your domain's MX record at ingress.aRecordAuthenticated Ingress Point
const ingress = yield* MailManager.IngressPoint("Smtp", { type: "AUTH", ruleSetId: ruleSet.ruleSetId, trafficPolicyId: trafficPolicy.trafficPolicyId, ingressPointConfiguration: { SecretArn: secret.secretArn }, tlsPolicy: "REQUIRED",});