Skip to content

GetStreamSession

Source: src/AWS/IVS/GetStreamSession.ts

Runtime binding for ivs:GetStreamSession.

Reads the metadata of a specific stream session on the bound Channel — ingest configuration, recording details, and the session’s truncated event log. Omit streamId to read the most recent session. The channel ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.IVS.GetStreamSessionHttp).

// init — bind the operation to the channel
const getStreamSession = yield* AWS.IVS.GetStreamSession(channel);
// runtime
const { streamSession } = yield* getStreamSession({});
yield* Effect.log(`codec: ${streamSession?.ingestConfiguration?.video?.codec}`);