| 1 | import * as sns from "@distilled.cloud/aws/sns"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeSnsTopicHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { Publish } from "./Publish.ts"; |
| 5 | |
| 6 | export const PublishHttp = Layer.effect( |
| 7 | Publish, |
| 8 | makeSnsTopicHttpBinding({ |
| 9 | tag: "AWS.SNS.Publish", |
| 10 | operation: sns.publish, |
| 11 | actions: ["sns:Publish"], |
| 12 | key: "TopicArn", |
| 13 | }), |
| 14 | ); |