1import * as sns from "@distilled.cloud/aws/sns";
2import * as Layer from "effect/Layer";
3import { makeSnsAccountHttpBinding } from "./BindingHttp.ts";
4import { PublishSms } from "./PublishSms.ts";
5
6export const PublishSmsHttp = Layer.effect(
7 PublishSms,
8 makeSnsAccountHttpBinding({
9 tag: "AWS.SNS.PublishSms",
10 operation: sns.publish,
11 // Direct SMS delivery is backed by `sms-voice:SendTextMessage`
12 // (probe-verified).
13 actions: ["sns:Publish", "sms-voice:SendTextMessage"],
14 }),
15);