ListPrefetchSchedules
Lists the prefetch schedules for a playback configuration.
Request Syntax
POST /prefetchSchedule/PlaybackConfigurationName
HTTP/1.1
Content-type: application/json
{
"MaxResults": number
,
"NextToken": "string
",
"StreamId": "string
"
}
URI Request Parameters
The request uses the following URI parameters.
- PlaybackConfigurationName
-
Retrieves the prefetch schedule(s) for a specific playback configuration.
Required: Yes
Request Body
The request accepts the following data in JSON format.
- MaxResults
-
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 ofNextToken
in the response to get the next page of results.Type: Integer
Valid Range: Minimum value of 1. Maximum value of 100.
Required: No
- NextToken
-
(Optional) If the playback configuration has more than
MaxResults
prefetch schedules, useNextToken
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 forNextToken
in the request.If the previous response didn't include a
NextToken
element, there are no more prefetch schedules to get.Type: String
Required: No
- StreamId
-
An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include only specific streams.
Type: String
Required: No
Response Syntax
HTTP/1.1 200
Content-type: application/json
{
"Items": [
{
"Arn": "string",
"Consumption": {
"AvailMatchingCriteria": [
{
"DynamicVariable": "string",
"Operator": "string"
}
],
"EndTime": number,
"StartTime": number
},
"Name": "string",
"PlaybackConfigurationName": "string",
"Retrieval": {
"DynamicVariables": {
"string" : "string"
},
"EndTime": number,
"StartTime": number
},
"StreamId": "string"
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- Items
-
Lists the prefetch schedules. An empty
Items
list doesn't mean there aren't more items to fetch, just that that page was empty.Type: Array of PrefetchSchedule objects
- NextToken
-
Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
Type: String
Errors
For information about the errors that are common to all actions, see Common Errors.
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: