| 1 | import * as sns from "@distilled.cloud/aws/sns"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeSnsAccountHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetSMSAttributes } from "./GetSMSAttributes.ts"; |
| 5 | |
| 6 | export const GetSMSAttributesHttp = Layer.effect( |
| 7 | GetSMSAttributes, |
| 8 | makeSnsAccountHttpBinding({ |
| 9 | tag: "AWS.SNS.GetSMSAttributes", |
| 10 | operation: sns.getSMSAttributes, |
| 11 | // SNS SMS preferences are backed by AWS End User Messaging — the read |
| 12 | // fans out to `sms-voice:DescribeSpendLimits` (probe-verified). |
| 13 | actions: ["sns:GetSMSAttributes", "sms-voice:DescribeSpendLimits"], |
| 14 | }), |
| 15 | ); |