Amazon MediaTailor Prefetch Schedule API
The Prefetch Schedule API from Amazon MediaTailor — 2 operation(s) for prefetch schedule.
The Prefetch Schedule API from Amazon MediaTailor — 2 operation(s) for prefetch schedule.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/amazon-mediatailor:amazon-mediatailor-prefetch-schedule-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.1.0
info:
title: AWS MediaTailor Prefetch Schedule API
version: '2018-04-23'
description: Generated from AWS's published Smithy model for AWS MediaTailor. 4 operation(s).
contact:
name: Amazon Web Services
url: https://aws.amazon.com/contact-us/
license:
name: Apache 2.0
identifier: Apache-2.0
url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://api.mediatailor.{region}.amazonaws.com
variables:
region:
default: us-east-1
security:
- sigv4: []
paths:
/prefetchSchedule/{PlaybackConfigurationName}/{Name}:
post:
operationId: CreatePrefetchSchedule
summary: Create Prefetch Schedule
description: Creates a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor
to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using
ad prefetching in the MediaTailor User Guide.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/CreatePrefetchScheduleResponse'
parameters:
- name: Name
in: path
required: true
schema:
type: string
description: The name to assign to the schedule request.
- name: PlaybackConfigurationName
in: path
required: true
schema:
type: string
description: The name to assign to the playback configuration.
requestBody:
content:
application/json:
schema:
type: object
properties:
Consumption:
$ref: '#/components/schemas/PrefetchConsumption'
Retrieval:
$ref: '#/components/schemas/PrefetchRetrieval'
RecurringPrefetchConfiguration:
$ref: '#/components/schemas/RecurringPrefetchConfiguration'
ScheduleType:
type: string
enum:
- SINGLE
- RECURRING
description: The frequency that MediaTailor creates prefetch schedules. SINGLE indicates that this schedule
applies to one ad break. RECURRING indicates that MediaTailor automatically creates a schedule for each
ad avail in a live event. For more information about the prefetch types and when you might use each, see
Prefetching ads in Elemental MediaTailor.
StreamId:
type: string
description: An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that
use the same playback configuration. If StreamId is specified, MediaTailor returns all of the prefetch
schedules with an exact match on StreamId. If not specified, MediaTailor returns all of the prefetch schedules
for the playback configuration, regardless of StreamId.
Tags:
type: object
additionalProperties:
type: string
description: The tags to assign to the prefetch schedule. Tags are key-value pairs that you can associate
with Amazon resources to help with organization, access control, and cost tracking. For more information,
see Tagging AWS Elemental MediaTailor Resources.
tags:
- Prefetch Schedule
get:
operationId: GetPrefetchSchedule
summary: Get Prefetch Schedule
description: Retrieves a prefetch schedule for a playback configuration. A prefetch schedule allows you to tell MediaTailor
to fetch and prepare certain ads before an ad break happens. For more information about ad prefetching, see Using
ad prefetching in the MediaTailor User Guide.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/GetPrefetchScheduleResponse'
parameters:
- name: Name
in: path
required: true
schema:
type: string
description: The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated
with the specified playback configuration.
- name: PlaybackConfigurationName
in: path
required: true
schema:
type: string
description: Returns information about the prefetch schedule for a specific playback configuration. If you call GetPrefetchSchedule
on an expired prefetch schedule, MediaTailor returns an HTTP 404 status code.
tags:
- Prefetch Schedule
delete:
operationId: DeletePrefetchSchedule
summary: Delete Prefetch Schedule
description: Deletes a prefetch schedule for a specific playback configuration. If you call DeletePrefetchSchedule on
an expired prefetch schedule, MediaTailor returns an HTTP 404 status code. For more information about ad prefetching,
see Using ad prefetching in the MediaTailor User Guide.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeletePrefetchScheduleResponse'
parameters:
- name: Name
in: path
required: true
schema:
type: string
description: The name of the prefetch schedule. If the action is successful, the service sends back an HTTP 204 response
with an empty HTTP body.
- name: PlaybackConfigurationName
in: path
required: true
schema:
type: string
description: The name of the playback configuration for this prefetch schedule.
tags:
- Prefetch Schedule
/prefetchSchedule/{PlaybackConfigurationName}:
post:
operationId: ListPrefetchSchedules
summary: List Prefetch Schedules
description: Lists the prefetch schedules for a playback configuration.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListPrefetchSchedulesResponse'
parameters:
- name: PlaybackConfigurationName
in: path
required: true
schema:
type: string
description: Retrieves the prefetch schedule(s) for a specific playback configuration.
requestBody:
content:
application/json:
schema:
type: object
properties:
MaxResults:
type: integer
description: The maximum number of prefetch schedules that you want MediaTailor to return in response to
the current request. If there are more than MaxResults prefetch schedules, use the value of NextToken
in the response to get the next page of results. The default value is 100. MediaTailor uses DynamoDB-based
pagination, which means that a response might contain fewer than MaxResults items, including 0 items,
even when more results are available. To retrieve all results, you must continue making requests using
the NextToken value from each response until the response no longer includes a NextToken value
NextToken:
type: string
description: Pagination token returned by the list request when results exceed the maximum allowed. Use
the token to fetch the next page of results. For the first ListPrefetchSchedules request, omit this value.
For subsequent requests, get the value of NextToken from the previous response and specify that value
for NextToken in the request. Continue making requests until the response no longer includes a NextToken
value, which indicates that all results have been retrieved.
ScheduleType:
type: string
enum:
- SINGLE
- RECURRING
- ALL
description: The type of prefetch schedules that you want to list. SINGLE indicates that you want to list
the configured single prefetch schedules. RECURRING indicates that you want to list the configured recurring
prefetch schedules. ALL indicates that you want to list all configured prefetch schedules.
StreamId:
type: string
description: An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include
only specific streams.
tags:
- Prefetch Schedule
components:
securitySchemes:
sigv4:
type: apiKey
in: header
name: Authorization
description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
x-aws-sigv4:
signingName: mediatailor
schemas:
AvailMatchingCriteria:
type: object
properties:
DynamicVariable:
type: string
description: The dynamic variable(s) that MediaTailor should use as avail matching criteria. MediaTailor only places
the prefetched ads into the avail if the avail matches the criteria defined by the dynamic variable. For information
about dynamic variables, see Using dynamic ad variables in the MediaTailor User Guide. You can include up to 100
dynamic variables.
Operator:
type: string
enum:
- EQUALS
description: For the DynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.
required:
- DynamicVariable
- Operator
CreatePrefetchScheduleResponse:
type: object
properties:
Arn:
type: string
description: The ARN to assign to the prefetch schedule.
Consumption:
$ref: '#/components/schemas/PrefetchConsumption'
Name:
type: string
description: The name to assign to the prefetch schedule.
PlaybackConfigurationName:
type: string
description: The name to assign to the playback configuration.
Retrieval:
$ref: '#/components/schemas/PrefetchRetrieval'
RecurringPrefetchConfiguration:
$ref: '#/components/schemas/RecurringPrefetchConfiguration'
ScheduleType:
type: string
enum:
- SINGLE
- RECURRING
description: The frequency that MediaTailor creates prefetch schedules. SINGLE indicates that this schedule applies
to one ad break. RECURRING indicates that MediaTailor automatically creates a schedule for each ad avail in a
live event.
StreamId:
type: string
description: An optional stream identifier that MediaTailor uses to prefetch ads for multiple streams that use the
same playback configuration. If StreamId is specified, MediaTailor returns all of the prefetch schedules with
an exact match on StreamId. If not specified, MediaTailor returns all of the prefetch schedules for the playback
configuration, regardless of StreamId.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the prefetch schedule. Tags are key-value pairs that you can associate with Amazon
resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS
Elemental MediaTailor Resources.
DeletePrefetchScheduleResponse:
type: object
properties: {}
GetPrefetchScheduleResponse:
type: object
properties:
Arn:
type: string
description: The Amazon Resource Name (ARN) of the prefetch schedule.
Consumption:
$ref: '#/components/schemas/PrefetchConsumption'
Name:
type: string
description: The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated
with the specified playback configuration.
PlaybackConfigurationName:
type: string
description: The name of the playback configuration to create the prefetch schedule for.
Retrieval:
$ref: '#/components/schemas/PrefetchRetrieval'
ScheduleType:
type: string
enum:
- SINGLE
- RECURRING
description: The frequency that MediaTailor creates prefetch schedules. SINGLE indicates that this schedule applies
to one ad break. RECURRING indicates that MediaTailor automatically creates a schedule for each ad avail in a
live event.
RecurringPrefetchConfiguration:
$ref: '#/components/schemas/RecurringPrefetchConfiguration'
StreamId:
type: string
description: An optional stream identifier that you can specify in order to prefetch for multiple streams that use
the same playback configuration.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the prefetch schedule. Tags are key-value pairs that you can associate with Amazon
resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS
Elemental MediaTailor Resources.
ListPrefetchSchedulesResponse:
type: object
properties:
Items:
type: array
items:
$ref: '#/components/schemas/PrefetchSchedule'
description: Lists the prefetch schedules. An empty Items list doesn't mean there aren't more items to fetch, just
that that page was empty.
NextToken:
type: string
description: Pagination token returned by the list request when results exceed the maximum allowed. Use the token
to fetch the next page of results.
PrefetchConsumption:
type: object
properties:
AvailMatchingCriteria:
type: array
items:
$ref: '#/components/schemas/AvailMatchingCriteria'
description: If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic
variables, such as scte.event_id, set the avail matching criteria.
EndTime:
type: string
format: date-time
description: The time when MediaTailor no longer considers the prefetched ads for use in an ad break. MediaTailor
automatically deletes prefetch schedules no less than seven days after the end time. If you'd like to manually
delete the prefetch schedule, you can call DeletePrefetchSchedule.
StartTime:
type: string
format: date-time
description: The time when prefetched ads are considered for use in an ad break. If you don't specify StartTime,
the prefetched ads are available after MediaTailor retrieves them from the ad decision server.
required:
- EndTime
PrefetchRetrieval:
type: object
properties:
DynamicVariables:
type: object
additionalProperties:
type: string
description: 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:
type: string
format: date-time
description: 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:
type: string
format: date-time
description: 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.
TrafficShapingType:
type: string
enum:
- RETRIEVAL_WINDOW
- TPS
description: Indicates the type of traffic shaping used to limit the number of requests to the ADS at one time.
TrafficShapingRetrievalWindow:
$ref: '#/components/schemas/TrafficShapingRetrievalWindow'
TrafficShapingTpsConfiguration:
$ref: '#/components/schemas/TrafficShapingTpsConfiguration'
required:
- EndTime
PrefetchSchedule:
type: object
properties:
Arn:
type: string
description: The Amazon Resource Name (ARN) of the prefetch schedule.
Consumption:
$ref: '#/components/schemas/PrefetchConsumption'
Name:
type: string
description: The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated
with the specified playback configuration.
PlaybackConfigurationName:
type: string
description: The name of the playback configuration to create the prefetch schedule for.
Retrieval:
$ref: '#/components/schemas/PrefetchRetrieval'
ScheduleType:
type: string
enum:
- SINGLE
- RECURRING
description: The frequency that MediaTailor creates prefetch schedules. SINGLE indicates that this schedule applies
to one ad break. RECURRING indicates that MediaTailor automatically creates a schedule for each ad avail in a
live event. For more information about the prefetch types and when you might use each, see Prefetching ads in
Elemental MediaTailor.
RecurringPrefetchConfiguration:
$ref: '#/components/schemas/RecurringPrefetchConfiguration'
StreamId:
type: string
description: An optional stream identifier that you can specify in order to prefetch for multiple streams that use
the same playback configuration.
Tags:
type: object
additionalProperties:
type: string
description: The tags assigned to the prefetch schedule. Tags are key-value pairs that you can associate with Amazon
resources to help with organization, access control, and cost tracking. For more information, see Tagging AWS
Elemental MediaTailor Resources.
required:
- Arn
- Name
- PlaybackConfigurationName
RecurringConsumption:
type: object
properties:
RetrievedAdExpirationSeconds:
type: integer
description: The number of seconds that an ad is available for insertion after it was prefetched.
AvailMatchingCriteria:
type: array
items:
$ref: '#/components/schemas/AvailMatchingCriteria'
description: The configuration for the dynamic variables that determine which ad breaks that MediaTailor inserts
prefetched ads in.
RecurringPrefetchConfiguration:
type: object
properties:
StartTime:
type: string
format: date-time
description: The start time for the window that MediaTailor prefetches and inserts ads in a live event.
EndTime:
type: string
format: date-time
description: The end time for the window that MediaTailor prefetches and inserts ads in a live event.
RecurringConsumption:
$ref: '#/components/schemas/RecurringConsumption'
RecurringRetrieval:
$ref: '#/components/schemas/RecurringRetrieval'
required:
- EndTime
- RecurringConsumption
- RecurringRetrieval
RecurringRetrieval:
type: object
properties:
DynamicVariables:
type: object
additionalProperties:
type: string
description: The dynamic variables to use for substitution during prefetch requests to the ADS.
DelayAfterAvailEndSeconds:
type: integer
description: The number of seconds that MediaTailor waits after an ad avail before prefetching ads for the next
avail. If not set, the default is 0 (no delay).
TrafficShapingType:
type: string
enum:
- RETRIEVAL_WINDOW
- TPS
description: Indicates the type of traffic shaping used to limit the number of requests to the ADS at one time.
TrafficShapingRetrievalWindow:
$ref: '#/components/schemas/TrafficShapingRetrievalWindow'
TrafficShapingTpsConfiguration:
$ref: '#/components/schemas/TrafficShapingTpsConfiguration'
TrafficShapingRetrievalWindow:
type: object
properties:
RetrievalWindowDurationSeconds:
type: integer
description: The amount of time, in seconds, that MediaTailor spreads prefetch requests to the ADS.
TrafficShapingTpsConfiguration:
type: object
properties:
PeakTps:
type: integer
description: The maximum number of transactions per second (TPS) that your ad decision server (ADS) can handle.
MediaTailor uses this value along with concurrent users and headroom multiplier to calculate optimal traffic distribution
and prevent ADS overload.
PeakConcurrentUsers:
type: integer
description: The expected peak number of concurrent viewers for your content. MediaTailor uses this value along
with peak TPS to determine how to distribute prefetch requests across the available capacity without exceeding
your ADS limits.
x-provenance:
method: harvested
publisher: Amazon Web Services
source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/mediatailor/service/2018-04-23/mediatailor-2018-04-23.json
note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)