startStreamProcessor method
Starts processing a stream processor. You create a stream processor by
calling CreateStreamProcessor. To tell
StartStreamProcessor which stream processor to start, use the
value of the Name field specified in the call to
CreateStreamProcessor.
May throw AccessDeniedException. May throw InternalServerError. May throw ThrottlingException. May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ResourceInUseException. May throw ProvisionedThroughputExceededException.
Parameter name :
The name of the stream processor to start processing.
Implementation
Future<void> startStreamProcessor({
required String name,
}) async {
ArgumentError.checkNotNull(name, 'name');
_s.validateStringLength(
'name',
name,
1,
128,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'RekognitionService.StartStreamProcessor'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
}