The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import * as sns from "@distilled.cloud/aws/sns"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeSnsAccountHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CheckIfPhoneNumberIsOptedOut } from "./CheckIfPhoneNumberIsOptedOut.ts"; |
| 5 | |
| 6 | export const CheckIfPhoneNumberIsOptedOutHttp = Layer.effect( |
| 7 | CheckIfPhoneNumberIsOptedOut, |
| 8 | makeSnsAccountHttpBinding({ |
| 9 | tag: "AWS.SNS.CheckIfPhoneNumberIsOptedOut", |
| 10 | operation: sns.checkIfPhoneNumberIsOptedOut, |
| 11 | // Opt-out reads are backed by `sms-voice:DescribeOptedOutNumbers` |
| 12 | // (probe-verified). |
| 13 | actions: ["sns:CheckIfPhoneNumberIsOptedOut", "sms-voice:DescribeOptedOutNumbers"], |
| 14 | }), |
| 15 | ); |