listMediaCapturePipelines method

Future<ListMediaCapturePipelinesResponse> listMediaCapturePipelines({
  1. int? maxResults,
  2. String? nextToken,
})

Returns a list of media pipelines.

May throw BadRequestException. May throw ForbiddenException. May throw ResourceLimitExceededException. May throw ServiceFailureException. May throw ServiceUnavailableException. May throw ThrottledClientException. May throw UnauthorizedClientException.

Parameter maxResults : The maximum number of results to return in a single call. Valid Range: 1 - 99.

Parameter nextToken : The token used to retrieve the next page of results.

Implementation

Future<ListMediaCapturePipelinesResponse> listMediaCapturePipelines({
  int? maxResults,
  String? nextToken,
}) async {
  _s.validateNumRange(
    'maxResults',
    maxResults,
    1,
    100,
  );
  final $query = <String, List<String>>{
    if (maxResults != null) 'max-results': [maxResults.toString()],
    if (nextToken != null) 'next-token': [nextToken],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/sdk-media-capture-pipelines',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListMediaCapturePipelinesResponse.fromJson(response);
}