Skip to content

StartViewerSessionRevocation

Source: src/AWS/IVS/StartViewerSessionRevocation.ts

Runtime binding for ivs:StartViewerSessionRevocation.

Starts revoking the viewer session for a given viewer ID on the bound Channel — used with private channels to eject a viewer whose playback authorization token carries that viewerId. Optionally revoke every session at or below a token version. The channel ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.IVS.StartViewerSessionRevocationHttp).

// init — bind the operation to the channel
const revokeViewerSession = yield* AWS.IVS.StartViewerSessionRevocation(channel);
// runtime
yield* revokeViewerSession({ viewerId: "user-123" });