updateRecommenderConfiguration method

Future<UpdateRecommenderConfigurationResponse> updateRecommenderConfiguration({
  1. required String recommenderId,
  2. required UpdateRecommenderConfiguration updateRecommenderConfiguration,
})

Updates an Amazon Pinpoint configuration for a recommender model.

May throw BadRequestException. May throw InternalServerErrorException. May throw PayloadTooLargeException. May throw ForbiddenException. May throw NotFoundException. May throw MethodNotAllowedException. May throw TooManyRequestsException.

Parameter recommenderId : The unique identifier for the recommender model configuration. This identifier is displayed as the Recommender ID on the Amazon Pinpoint console.

Implementation

Future<UpdateRecommenderConfigurationResponse>
    updateRecommenderConfiguration({
  required String recommenderId,
  required UpdateRecommenderConfiguration updateRecommenderConfiguration,
}) async {
  ArgumentError.checkNotNull(recommenderId, 'recommenderId');
  ArgumentError.checkNotNull(
      updateRecommenderConfiguration, 'updateRecommenderConfiguration');
  final response = await _protocol.sendRaw(
    payload: updateRecommenderConfiguration,
    method: 'PUT',
    requestUri: '/v1/recommenders/${Uri.encodeComponent(recommenderId)}',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return UpdateRecommenderConfigurationResponse(
    recommenderConfigurationResponse:
        RecommenderConfigurationResponse.fromJson($json),
  );
}