Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Lists the prefetch schedules for a playback configuration.
This operation returns paginated results.
Synopsis
- data ListPrefetchSchedules = ListPrefetchSchedules' {}
- newListPrefetchSchedules :: Text -> ListPrefetchSchedules
- listPrefetchSchedules_maxResults :: Lens' ListPrefetchSchedules (Maybe Natural)
- listPrefetchSchedules_nextToken :: Lens' ListPrefetchSchedules (Maybe Text)
- listPrefetchSchedules_streamId :: Lens' ListPrefetchSchedules (Maybe Text)
- listPrefetchSchedules_playbackConfigurationName :: Lens' ListPrefetchSchedules Text
- data ListPrefetchSchedulesResponse = ListPrefetchSchedulesResponse' {
- items :: Maybe [PrefetchSchedule]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListPrefetchSchedulesResponse :: Int -> ListPrefetchSchedulesResponse
- listPrefetchSchedulesResponse_items :: Lens' ListPrefetchSchedulesResponse (Maybe [PrefetchSchedule])
- listPrefetchSchedulesResponse_nextToken :: Lens' ListPrefetchSchedulesResponse (Maybe Text)
- listPrefetchSchedulesResponse_httpStatus :: Lens' ListPrefetchSchedulesResponse Int
Creating a Request
data ListPrefetchSchedules Source #
See: newListPrefetchSchedules
smart constructor.
ListPrefetchSchedules' | |
|
Instances
newListPrefetchSchedules Source #
Create a value of ListPrefetchSchedules
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:maxResults:ListPrefetchSchedules'
, listPrefetchSchedules_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 of NextToken
in the
response to get the next page of results.
ListPrefetchSchedules
, listPrefetchSchedules_nextToken
- (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.
ListPrefetchSchedules
, listPrefetchSchedules_streamId
- An optional filtering parameter whereby MediaTailor filters the prefetch
schedules to include only specific streams.
ListPrefetchSchedules
, listPrefetchSchedules_playbackConfigurationName
- Retrieves the prefetch schedule(s) for a specific playback
configuration.
Request Lenses
listPrefetchSchedules_maxResults :: Lens' ListPrefetchSchedules (Maybe Natural) Source #
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.
listPrefetchSchedules_nextToken :: Lens' ListPrefetchSchedules (Maybe Text) Source #
(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.
listPrefetchSchedules_streamId :: Lens' ListPrefetchSchedules (Maybe Text) Source #
An optional filtering parameter whereby MediaTailor filters the prefetch schedules to include only specific streams.
listPrefetchSchedules_playbackConfigurationName :: Lens' ListPrefetchSchedules Text Source #
Retrieves the prefetch schedule(s) for a specific playback configuration.
Destructuring the Response
data ListPrefetchSchedulesResponse Source #
See: newListPrefetchSchedulesResponse
smart constructor.
ListPrefetchSchedulesResponse' | |
|
Instances
newListPrefetchSchedulesResponse Source #
Create a value of ListPrefetchSchedulesResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:items:ListPrefetchSchedulesResponse'
, listPrefetchSchedulesResponse_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.
ListPrefetchSchedules
, listPrefetchSchedulesResponse_nextToken
- Pagination token returned by the list request when results exceed the
maximum allowed. Use the token to fetch the next page of results.
$sel:httpStatus:ListPrefetchSchedulesResponse'
, listPrefetchSchedulesResponse_httpStatus
- The response's http status code.
Response Lenses
listPrefetchSchedulesResponse_items :: Lens' ListPrefetchSchedulesResponse (Maybe [PrefetchSchedule]) Source #
Lists the prefetch schedules. An empty Items
list doesn't mean there
aren't more items to fetch, just that that page was empty.
listPrefetchSchedulesResponse_nextToken :: Lens' ListPrefetchSchedulesResponse (Maybe Text) Source #
Pagination token returned by the list request when results exceed the maximum allowed. Use the token to fetch the next page of results.
listPrefetchSchedulesResponse_httpStatus :: Lens' ListPrefetchSchedulesResponse Int Source #
The response's http status code.