SES
The SES resource lets you create and manage Amazon Simple Email Service (SES) configuration sets and email identities.
Minimal Example
Section titled “Minimal Example”Create a basic configuration set for sending emails:
import { SES } from "alchemy/aws";
const configSet = await SES("email-config", { configurationSetName: "my-email-config", sendingOptions: { SendingEnabled: true, },});
Create Domain Identity with DKIM
Section titled “Create Domain Identity with DKIM”Create and verify a domain identity with DKIM signing enabled:
const domainIdentity = await SES("domain-identity", { emailIdentity: "example.com", enableDkim: true, tags: { Environment: "production", },});
Configure Tracking Options
Section titled “Configure Tracking Options”Set up tracking options for open and click tracking:
const emailConfig = await SES("tracking-config", { configurationSetName: "tracking-config", trackingOptions: { CustomRedirectDomain: "click.example.com", }, suppressionOptions: { SuppressedReasons: ["BOUNCE", "COMPLAINT"], },});