1import * as kvs from "@distilled.cloud/aws/kinesis-video-signaling";
2import * as Layer from "effect/Layer";
3import { makeChannelSignalingHttpBinding } from "./BindingHttp.ts";
4import { SendAlexaOfferToMaster } from "./SendAlexaOfferToMaster.ts";
5
6export const SendAlexaOfferToMasterHttp = Layer.effect(
7 SendAlexaOfferToMaster,
8 makeChannelSignalingHttpBinding({
9 tag: "AWS.KinesisVideo.SendAlexaOfferToMaster",
10 // SendAlexaOfferToMaster is served by the channel's HTTPS signaling
11 // endpoint; the offer is addressed to the MASTER peer.
12 protocol: "HTTPS",
13 role: "MASTER",
14 actions: ["kinesisvideo:SendAlexaOfferToMaster"],
15 key: "ChannelARN",
16 operation: kvs.sendAlexaOfferToMaster,
17 }),
18);