Skip to content
Source
Sign inSign up
pingdotgg/t3code
Open History to see the last commit

DetectSentimentHttp.ts

13 lines459 Bytes

1import * as comprehend from "@distilled.cloud/aws/comprehend";
2import * as Layer from "effect/Layer";
3import { makeComprehendHttpBinding } from "./BindingHttp.ts";
4import { DetectSentiment } from "./DetectSentiment.ts";
5​
6export const DetectSentimentHttp = Layer.effect(
7 DetectSentiment,
8 makeComprehendHttpBinding({
9 tag: "AWS.Comprehend.DetectSentiment",
10 operation: comprehend.detectSentiment,
11 actions: ["comprehend:DetectSentiment"],
12 }),
13);