openapi: 3.0.0 info: version: 2018-04-23 x-release: v4 title: AWS MediaTailor Alerts#resourceArn PrefetchSchedule API description:
Use the AWS Elemental MediaTailor SDKs and CLI to configure scalable ad insertion and linear channels. With MediaTailor, you can assemble existing content into a linear stream and serve targeted ads to viewers while maintaining broadcast quality in over-the-top (OTT) video applications. For information about using the service, including detailed information about the settings covered in this guide, see the AWS Elemental MediaTailor User Guide.
Through the SDKs and the CLI you manage AWS Elemental MediaTailor configurations and channels the same as you do through the console. For example, you specify ad insertion behavior and mapping information for the origin server and the ad decision server (ADS).
x-logo: url: https://api.apis.guru/v2/cache/logo/https_twitter.com_awscloud_profile_image.png backgroundColor: '#FFFFFF' termsOfService: https://aws.amazon.com/service-terms/ contact: name: Mike Ralphson email: mike.ralphson@gmail.com url: https://github.com/mermade/aws2openapi x-twitter: PermittedSoc license: name: Apache 2.0 License url: http://www.apache.org/licenses/ x-providerName: amazonaws.com x-serviceName: mediatailor x-aws-signingName: mediatailor x-origin: - contentType: application/json url: https://raw.githubusercontent.com/aws/aws-sdk-js/master/apis/mediatailor-2018-04-23.normal.json converter: url: https://github.com/mermade/aws2openapi version: 1.0.0 x-apisguru-driver: external x-apiClientRegistration: url: https://portal.aws.amazon.com/gp/aws/developer/registration/index.html?nc2=h_ct x-apisguru-categories: - cloud x-preferred: true servers: - url: http://api.mediatailor.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The MediaTailor multi-region endpoint - url: https://api.mediatailor.{region}.amazonaws.com variables: region: description: The AWS region enum: - us-east-1 - us-east-2 - us-west-1 - us-west-2 - us-gov-west-1 - us-gov-east-1 - ca-central-1 - eu-north-1 - eu-west-1 - eu-west-2 - eu-west-3 - eu-central-1 - eu-south-1 - af-south-1 - ap-northeast-1 - ap-northeast-2 - ap-northeast-3 - ap-southeast-1 - ap-southeast-2 - ap-east-1 - ap-south-1 - sa-east-1 - me-south-1 default: us-east-1 description: The MediaTailor multi-region endpoint - url: http://api.mediatailor.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The MediaTailor endpoint for China (Beijing) and China (Ningxia) - url: https://api.mediatailor.{region}.amazonaws.com.cn variables: region: description: The AWS region enum: - cn-north-1 - cn-northwest-1 default: cn-north-1 description: The MediaTailor endpoint for China (Beijing) and China (Ningxia) security: - hmac: [] tags: - name: PrefetchSchedule paths: /prefetchSchedule/{PlaybackConfigurationName}/{Name}: parameters: - $ref: '#/components/parameters/X-Amz-Content-Sha256' - $ref: '#/components/parameters/X-Amz-Date' - $ref: '#/components/parameters/X-Amz-Algorithm' - $ref: '#/components/parameters/X-Amz-Credential' - $ref: '#/components/parameters/X-Amz-Security-Token' - $ref: '#/components/parameters/X-Amz-Signature' - $ref: '#/components/parameters/X-Amz-SignedHeaders' post: operationId: CreatePrefetchSchedule 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' examples: CreatePrefetchSchedule200Example: summary: Default CreatePrefetchSchedule 200 response x-microcks-default: true value: Arn: arn:aws:service:us-east-1:123456789012:resource/example Consumption: example-value Name: example-resource PlaybackConfigurationName: example-resource Retrieval: example-value parameters: - name: Name in: path required: true description: The name to assign to the schedule request. schema: type: string - name: PlaybackConfigurationName in: path required: true description: The name to assign to the playback configuration. schema: type: string requestBody: required: true content: application/json: schema: type: object required: - Consumption - Retrieval properties: Consumption: description: A complex type that contains settings that determine how and when that MediaTailor places prefetched ads into upcoming ad breaks. type: object properties: AvailMatchingCriteria: allOf: - $ref: '#/components/schemas/__listOfAvailMatchingCriteria' - description: If you only want MediaTailor to insert prefetched ads into avails (ad breaks) that match specific dynamic variables, such asscte.event_id, set the avail matching criteria.
EndTime:
allOf:
- $ref: '#/components/schemas/__timestampUnix'
- 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:
allOf:
- $ref: '#/components/schemas/__timestampUnix'
- 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 retrives them from the ad decision server.
Retrieval:
description: 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.
type: object
properties:
DynamicVariables:
allOf:
- $ref: '#/components/schemas/__mapOf__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.
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.
type: string
summary: Amazon MediaTailor Create Prefetch Schedule
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
tags:
- PrefetchSchedule
delete:
operationId: DeletePrefetchSchedule
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:
'204':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/DeletePrefetchScheduleResponse'
examples:
DeletePrefetchSchedule204Example:
summary: Default DeletePrefetchSchedule 204 response
x-microcks-default: true
value: {}
parameters:
- name: Name
in: path
required: true
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.
schema:
type: string
- name: PlaybackConfigurationName
in: path
required: true
description: The name of the playback configuration for this prefetch schedule.
schema:
type: string
summary: Amazon MediaTailor Delete Prefetch Schedule
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
tags:
- PrefetchSchedule
get:
operationId: GetPrefetchSchedule
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'
examples:
GetPrefetchSchedule200Example:
summary: Default GetPrefetchSchedule 200 response
x-microcks-default: true
value:
Arn: arn:aws:service:us-east-1:123456789012:resource/example
Consumption: example-value
Name: example-resource
PlaybackConfigurationName: example-resource
Retrieval: example-value
parameters:
- name: Name
in: path
required: true
description: The name of the prefetch schedule. The name must be unique among all prefetch schedules that are associated with the specified playback configuration.
schema:
type: string
- name: PlaybackConfigurationName
in: path
required: true
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.
schema:
type: string
summary: Amazon MediaTailor Get Prefetch Schedule
x-microcks-operation:
delay: 0
dispatcher: FALLBACK
tags:
- PrefetchSchedule
/prefetchSchedule/{PlaybackConfigurationName}:
parameters:
- $ref: '#/components/parameters/X-Amz-Content-Sha256'
- $ref: '#/components/parameters/X-Amz-Date'
- $ref: '#/components/parameters/X-Amz-Algorithm'
- $ref: '#/components/parameters/X-Amz-Credential'
- $ref: '#/components/parameters/X-Amz-Security-Token'
- $ref: '#/components/parameters/X-Amz-Signature'
- $ref: '#/components/parameters/X-Amz-SignedHeaders'
post:
operationId: ListPrefetchSchedules
description: Lists the prefetch schedules for a playback configuration.
responses:
'200':
description: Success
content:
application/json:
schema:
$ref: '#/components/schemas/ListPrefetchSchedulesResponse'
examples:
ListPrefetchSchedules200Example:
summary: Default ListPrefetchSchedules 200 response
x-microcks-default: true
value:
Items: example-value
NextToken: example-value
parameters:
- name: PlaybackConfigurationName
in: path
required: true
description: Retrieves the prefetch schedule(s) for a specific playback configuration.
schema:
type: string
- name: MaxResults
in: query
schema:
type: string
description: Pagination limit
required: false
- name: NextToken
in: query
schema:
type: string
description: Pagination token
required: false
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
MaxResults:
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.
type: integer
minimum: 1
maximum: 100
NextToken:
description: (Optional) If the playback configuration has more than MaxResults prefetch schedules, use NextToken to get the second and subsequent pages of results.
For the first ListPrefetchSchedulesRequest request, omit this value.
For the second and subsequent requests, get the value of NextToken from the previous response and specify that value for NextToken in the request.
If the previous response didn't include a NextToken element, there are no more prefetch schedules to get.
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.
AvailMatchingCriteria:
type: object
required:
- DynamicVariable
- Operator
properties:
DynamicVariable:
allOf:
- $ref: '#/components/schemas/__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: allOf: - $ref: '#/components/schemas/Operator' - description: For theDynamicVariable specified in AvailMatchingCriteria, the Operator that is used for the comparison.
description: MediaTailor only places (consumes) prefetched ads if the ad break meets the criteria defined by the dynamic variables. This gives you granular control over which ad break to place the prefetched ads into.
As an example, let's say that you set DynamicVariable to scte.event_id and Operator to EQUALS, and your playback configuration has an ADS URL of https://my.ads.server.com/path?&podId=[scte.avail_num]&event=[scte.event_id]&duration=[session.avail_duration_secs]. And the prefetch request to the ADS contains these values https://my.ads.server.com/path?&podId=3&event=my-awesome-event&duration=30. MediaTailor will only insert the prefetched ads into the ad break if has a SCTE marker with an event id of my-awesome-event, since it must match the event id that MediaTailor uses to query the ADS.
You can specify up to five AvailMatchingCriteria. If you specify multiple AvailMatchingCriteria, MediaTailor combines them to match using a logical AND. You can model logical OR combinations by creating multiple prefetch schedules.
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.
scte.event_id, set the avail matching criteria.
EndTime:
allOf:
- $ref: '#/components/schemas/__timestampUnix'
- 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:
allOf:
- $ref: '#/components/schemas/__timestampUnix'
- 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 retrives them from the ad decision server.
description: A complex type that contains settings that determine how and when that MediaTailor places prefetched ads into upcoming ad breaks.
DeletePrefetchScheduleResponse:
type: object
properties: {}
PrefetchSchedule:
type: object
required:
- Arn
- Consumption
- Name
- PlaybackConfigurationName
- Retrieval
properties:
Arn:
allOf:
- $ref: '#/components/schemas/__string'
- description: The Amazon Resource Name (ARN) of the prefetch schedule.
Consumption:
allOf:
- $ref: '#/components/schemas/PrefetchConsumption'
- description: Consumption settings determine how, and when, MediaTailor places the prefetched ads into ad breaks. Ad consumption occurs within a span of time that you define, called a consumption window. You can designate which ad breaks that MediaTailor fills with prefetch ads by setting avail matching criteria.
Name:
allOf:
- $ref: '#/components/schemas/__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:
allOf:
- $ref: '#/components/schemas/__string'
- description: The name of the playback configuration to create the prefetch schedule for.
Retrieval:
allOf:
- $ref: '#/components/schemas/PrefetchRetrieval'
- description: A complex type that contains settings for prefetch retrieval from the ad decision server (ADS).
StreamId:
allOf:
- $ref: '#/components/schemas/__string'
- description: An optional stream identifier that you can specify in order to prefetch for multiple streams that use the same playback configuration.
description: 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.
__listOfAvailMatchingCriteria:
type: array
items:
$ref: '#/components/schemas/AvailMatchingCriteria'
__listOfPrefetchSchedule:
type: array
items:
$ref: '#/components/schemas/PrefetchSchedule'
ListPrefetchSchedulesResponse:
type: object
properties:
Items:
allOf:
- $ref: '#/components/schemas/__listOfPrefetchSchedule'
- 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:
allOf:
- $ref: '#/components/schemas/__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.
Operator:
type: string
enum:
- EQUALS
__string:
type: string
parameters:
X-Amz-Credential:
name: X-Amz-Credential
in: header
schema:
type: string
required: false
X-Amz-Date:
name: X-Amz-Date
in: header
schema:
type: string
required: false
X-Amz-Signature:
name: X-Amz-Signature
in: header
schema:
type: string
required: false
X-Amz-Algorithm:
name: X-Amz-Algorithm
in: header
schema:
type: string
required: false
X-Amz-Security-Token:
name: X-Amz-Security-Token
in: header
schema:
type: string
required: false
X-Amz-SignedHeaders:
name: X-Amz-SignedHeaders
in: header
schema:
type: string
required: false
X-Amz-Content-Sha256:
name: X-Amz-Content-Sha256
in: header
schema:
type: string
required: false
securitySchemes:
hmac:
type: apiKey
name: Authorization
in: header
description: Amazon Signature authorization v4
x-amazon-apigateway-authtype: awsSigv4
externalDocs:
description: Amazon Web Services documentation
url: https://docs.aws.amazon.com/mediatailor/
x-hasEquivalentPaths: true