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