deleteRecommendation method
Deletes a recommendation and its associated results.
May throw AccessDeniedException.
May throw ConflictException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter recommendationId :
The unique identifier of the recommendation to delete.
Implementation
Future<DeleteRecommendationResponse> deleteRecommendation({
required String recommendationId,
}) async {
final response = await _protocol.send(
payload: null,
method: 'DELETE',
requestUri: '/recommendations/${Uri.encodeComponent(recommendationId)}',
exceptionFnMap: _exceptionFns,
);
return DeleteRecommendationResponse.fromJson(response);
}