Skip to content

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).

// init — bind the operation to the channel
const updateSchedule = yield* AWS.MediaLive.BatchUpdateSchedule(channel);
// runtime
yield* updateSchedule({
Creates: {
ScheduleActions: [
{
ActionName: "switch-to-backup",
ScheduleActionStartSettings: {
FixedModeScheduleActionStartSettings: {
Time: "2026-01-01T00:00:00.000Z",
},
},
ScheduleActionSettings: {
InputSwitchSettings: { InputAttachmentNameReference: "backup" },
},
},
],
},
});