stopStreamProcessor method
Stops a running stream processor that was created by 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 a stream processor created by CreateStreamProcessor.
Implementation
Future<void> stopStreamProcessor({
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.StopStreamProcessor'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'Name': name,
},
);
}