1import * as sesv2 from "@distilled.cloud/aws/sesv2";
2import * as Layer from "effect/Layer";
3import { makeSendScopedHttpBinding } from "./BindingHttp.ts";
4import { SendEmail } from "./SendEmail.ts";
5
6export const SendEmailHttp = Layer.effect(
7 SendEmail,
8 makeSendScopedHttpBinding({
9 tag: "AWS.SES.SendEmail",
10 operation: sesv2.sendEmail,
11 actions: [
12 "ses:SendEmail",
13 "ses:SendRawEmail",
14 "ses:SendTemplatedEmail",
15 "ses:SendBulkTemplatedEmail",
16 ],
17 }),
18);