BatchUpdateSchedule
Source:
src/AWS/MediaLive/BatchUpdateSchedule.ts
Runtime binding for medialive:BatchUpdateSchedule.
Adds and/or removes schedule actions on the bound Channel — ad
breaks (SCTE-35 splices), input switches, static image overlays, pause
states — the primary data-plane API for driving a live broadcast (e.g.
a playout-automation Lambda that switches inputs on a timecode). The
channel id is injected from the binding. Provide the implementation
with Effect.provide(AWS.MediaLive.BatchUpdateScheduleHttp).
Driving the Channel Schedule
Section titled “Driving the Channel Schedule”// init — bind the operation to the channelconst updateSchedule = yield* AWS.MediaLive.BatchUpdateSchedule(channel);
// runtimeyield* updateSchedule({ Creates: { ScheduleActions: [ { ActionName: "switch-to-backup", ScheduleActionStartSettings: { FixedModeScheduleActionStartSettings: { Time: "2026-01-01T00:00:00.000Z", }, }, ScheduleActionSettings: { InputSwitchSettings: { InputAttachmentNameReference: "backup" }, }, }, ], },});