Skip to content

ListStreamSessions

Source: src/AWS/IVS/ListStreamSessions.ts

Runtime binding for ivs:ListStreamSessions.

Enumerates current and previous broadcast sessions on the bound Channel (most recent first). The channel ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.IVS.ListStreamSessionsHttp).

// init — bind the operation to the channel
const listStreamSessions = yield* AWS.IVS.ListStreamSessions(channel);
// runtime
const { streamSessions } = yield* listStreamSessions({ maxResults: 10 });
yield* Effect.log(`sessions: ${streamSessions.length}`);