CreatePrefetchSchedule
Source:
src/AWS/MediaTailor/CreatePrefetchSchedule.ts
Runtime binding for mediatailor:CreatePrefetchSchedule — tell MediaTailor
to fetch and prepare ads for upcoming ad breaks ahead of time (e.g. right
before a live event’s scheduled break) so avails fill without ADS latency.
The bound PlaybackConfiguration’s name is injected; the grant is
scoped to that configuration’s prefetch-schedule ARN space. Provide the
implementation with Effect.provide(AWS.MediaTailor.CreatePrefetchScheduleHttp).
Prefetching Ads
Section titled “Prefetching Ads”const createPrefetchSchedule = yield* AWS.MediaTailor.CreatePrefetchSchedule(config);
const schedule = yield* createPrefetchSchedule({ Name: `event-${eventId}`, Retrieval: { EndTime: retrievalDeadline }, Consumption: { EndTime: breakEnd },});