getRecommenderConfiguration method

Future<GetRecommenderConfigurationResponse> getRecommenderConfiguration({
  1. required String recommenderId,
})

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