sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ KinesisVideo/ SendAlexaOfferToMasterHttp.ts

import * as kvs from "@distilled.cloud/aws/kinesis-video-signaling";
import * as Layer from "effect/Layer";
import { makeChannelSignalingHttpBinding } from "./BindingHttp.ts";
import { SendAlexaOfferToMaster } from "./SendAlexaOfferToMaster.ts";

export const SendAlexaOfferToMasterHttp = Layer.effect(
  SendAlexaOfferToMaster,
  makeChannelSignalingHttpBinding({
    tag: "AWS.KinesisVideo.SendAlexaOfferToMaster",
    // SendAlexaOfferToMaster is served by the channel's HTTPS signaling
    // endpoint; the offer is addressed to the MASTER peer.
    protocol: "HTTPS",
    role: "MASTER",
    actions: ["kinesisvideo:SendAlexaOfferToMaster"],
    key: "ChannelARN",
    operation: kvs.sendAlexaOfferToMaster,
  }),
);