Skip to content

StartChannel

Source: src/AWS/MediaLive/StartChannel.ts

Runtime binding for medialive:StartChannel.

Starts the bound Channel, transitioning it from IDLE through STARTING to RUNNING. A RUNNING channel encodes and bills hourly — pair with StopChannel to control encoding cost (e.g. a scheduler Lambda that runs the channel only during broadcast windows). The channel id is injected from the binding. Provide the implementation with Effect.provide(AWS.MediaLive.StartChannelHttp).

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