listStreamProcessors method
Gets a list of stream processors that you have created with CreateStreamProcessor.
May throw AccessDeniedException. May throw InternalServerError. May throw ThrottlingException. May throw InvalidParameterException. May throw InvalidPaginationTokenException. May throw ProvisionedThroughputExceededException.
Parameter maxResults
:
Maximum number of stream processors you want Amazon Rekognition Video to
return in the response. The default is 1000.
Parameter nextToken
:
If the previous response was incomplete (because there are more stream
processors to retrieve), Amazon Rekognition Video returns a pagination
token in the response. You can use this pagination token to retrieve the
next set of stream processors.
Implementation
Future<ListStreamProcessorsResponse> listStreamProcessors({
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
1152921504606846976,
);
_s.validateStringLength(
'nextToken',
nextToken,
0,
255,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RekognitionService.ListStreamProcessors'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
},
);
return ListStreamProcessorsResponse.fromJson(jsonResponse.body);
}