Skip to content

UpdateProgram

Source: src/AWS/MediaTailor/UpdateProgram.ts

Runtime binding for mediatailor:UpdateProgram — move or re-configure a scheduled program on a channel-assembly channel (e.g. change its transition or ad breaks) before it plays.

Channel/program names are runtime parameters, so the binding is account-level and grants mediatailor:UpdateProgram on *. Provide the implementation with Effect.provide(AWS.MediaTailor.UpdateProgramHttp).

const updateProgram = yield* AWS.MediaTailor.UpdateProgram();
yield* updateProgram({
ChannelName: "my-channel",
ProgramName: `episode-${id}`,
ScheduleConfiguration: { Transition: { ScheduledStartTimeMillis: startAt } },
});