stopRecommender method
Stops a recommender, suspending its ability to generate recommendations. The recommender can be restarted later using StartRecommender.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter domainName :
The unique name of the domain.
Parameter recommenderName :
The name of the recommender to stop.
Implementation
Future<void> stopRecommender({
required String domainName,
required String recommenderName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'PUT',
requestUri:
'/domains/${Uri.encodeComponent(domainName)}/recommenders/${Uri.encodeComponent(recommenderName)}/stop',
exceptionFnMap: _exceptionFns,
);
}