Skip to content

ResetChannelState

Source: src/AWS/MediaPackageV2/ResetChannelState.ts

Runtime binding for mediapackagev2:ResetChannelState.

Resets the ingest state of the bound Channel — clearing buffered content so the encoder can re-push a clean stream after a corrupted contribution (e.g. an ops Lambda recovering a broken live event). The channel’s group and name are injected from the binding. Provide the implementation with Effect.provide(AWS.MediaPackageV2.ResetChannelStateHttp).

// init — bind the operation to the channel
const resetChannel = yield* AWS.MediaPackageV2.ResetChannelState(channel);
// runtime
const { ResetAt } = yield* resetChannel();