Skip to content

StopChannel

Source: src/AWS/MediaLive/StopChannel.ts

Runtime binding for medialive:StopChannel.

Stops the bound Channel, transitioning it from RUNNING through STOPPING back to IDLE — the other half of a broadcast-window scheduler built on StartChannel. Stopping a channel that is not running fails with the typed ConflictException tag. The channel id is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaLive.StopChannelHttp).

// init — bind the operation to the channel
const stopChannel = yield* AWS.MediaLive.StopChannel(channel);
// runtime
const { State } = yield* stopChannel();