createRecommenderConfiguration method

Future<CreateRecommenderConfigurationResponse> createRecommenderConfiguration({
  1. required CreateRecommenderConfigurationShape createRecommenderConfiguration,
})

Creates 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.

Implementation

Future<CreateRecommenderConfigurationResponse>
    createRecommenderConfiguration({
  required CreateRecommenderConfigurationShape createRecommenderConfiguration,
}) async {
  final response = await _protocol.sendRaw(
    payload: createRecommenderConfiguration,
    method: 'POST',
    requestUri: '/v1/recommenders',
    exceptionFnMap: _exceptionFns,
  );
  final $json = await _s.jsonFromResponse(response);
  return CreateRecommenderConfigurationResponse(
    recommenderConfigurationResponse:
        RecommenderConfigurationResponse.fromJson($json),
  );
}