stopHumanLoop method
Stops the specified human loop.
May throw ValidationException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServerException.
Parameter humanLoopName
:
The name of the human loop that you want to stop.
Implementation
Future<void> stopHumanLoop({
required String humanLoopName,
}) async {
ArgumentError.checkNotNull(humanLoopName, 'humanLoopName');
_s.validateStringLength(
'humanLoopName',
humanLoopName,
1,
63,
isRequired: true,
);
final $payload = <String, dynamic>{
'HumanLoopName': humanLoopName,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/human-loops/stop',
exceptionFnMap: _exceptionFns,
);
}