| 1 | import * as kvs from "@distilled.cloud/aws/kinesis-video-signaling"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeChannelSignalingHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GetIceServerConfig } from "./GetIceServerConfig.ts"; |
| 5 | |
| 6 | export 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 | ); |