updateRecommenderConfiguration method
Future<UpdateRecommenderConfigurationResponse>
updateRecommenderConfiguration({
- required String recommenderId,
- required UpdateRecommenderConfigurationShape updateRecommenderConfiguration,
Updates an Amazon Pinpoint configuration for a recommender model.
May throw BadRequestException.
May throw ForbiddenException.
May throw InternalServerErrorException.
May throw MethodNotAllowedException.
May throw NotFoundException.
May throw PayloadTooLargeException.
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 UpdateRecommenderConfigurationShape updateRecommenderConfiguration,
}) async {
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),
);
}