startRecommender method

Future<void> startRecommender({
  1. required String domainName,
  2. required String recommenderName,
})

Starts a recommender that was previously stopped. Starting a recommender resumes its ability to generate recommendations.

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 start.

Implementation

Future<void> startRecommender({
  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)}/start',
    exceptionFnMap: _exceptionFns,
  );
}