Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

PrefetchRetrieval

import type { PrefetchRetrieval } from "https://aws-api.deno.dev/v0.4/services/mediatailor.ts?docs=full";

A complex type that contains settings governing when MediaTailor prefetches ads, and which dynamic variables that MediaTailor includes in the request to the ad decision server.

interface PrefetchRetrieval {
DynamicVariables?: {
[key: string]: string | null | undefined;
}
| null;
EndTime: Date | number;
StartTime?: Date | number | null;
}

§Properties

§
DynamicVariables?: {
[key: string]: string | null | undefined;
}
| null
[src]

The dynamic variables to use for substitution during prefetch requests to the ad decision server (ADS).

You initially configure dynamic variables for the ADS URL when you set up your playback configuration. When you specify DynamicVariables for prefetch retrieval, MediaTailor includes the dynamic variables in the request to the ADS.

§
EndTime: Date | number
[src]

The time when prefetch retrieval ends for the ad break. Prefetching will be attempted for manifest requests that occur at or before this time.

§
StartTime?: Date | number | null
[src]

The time when prefetch retrievals can start for this break. Ad prefetching will be attempted for manifest requests that occur at or after this time. Defaults to the current time. If not specified, the prefetch retrieval starts as soon as possible.