deleteRecommenderConfiguration method
Future<DeleteRecommenderConfigurationResponse>
deleteRecommenderConfiguration({
- required String recommenderId,
Deletes 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<DeleteRecommenderConfigurationResponse>
deleteRecommenderConfiguration({
required String recommenderId,
}) async {
ArgumentError.checkNotNull(recommenderId, 'recommenderId');
final response = await _protocol.sendRaw(
payload: null,
method: 'DELETE',
requestUri: '/v1/recommenders/${Uri.encodeComponent(recommenderId)}',
exceptionFnMap: _exceptionFns,
);
final $json = await _s.jsonFromResponse(response);
return DeleteRecommenderConfigurationResponse(
recommenderConfigurationResponse:
RecommenderConfigurationResponse.fromJson($json),
);
}