listPlaybackConfigurations method
Returns a list of the playback configurations defined in AWS Elemental MediaTailor. You can specify a maximum number of configurations to return at a time. The default maximum is 50. Results are returned in pagefuls. If MediaTailor has more configurations than the specified maximum, it provides parameters in the response that you can use to retrieve the next pageful.
Parameter maxResults
:
Maximum number of records to return.
Parameter nextToken
:
Pagination token returned by the GET list request when results exceed the
maximum allowed. Use the token to fetch the next page of results.
Implementation
Future<ListPlaybackConfigurationsResponse> listPlaybackConfigurations({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'MaxResults': [maxResults.toString()],
if (nextToken != null) 'NextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/playbackConfigurations',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListPlaybackConfigurationsResponse.fromJson(response);
}