createRecommenderConfiguration method

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

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

Implementation

Future<CreateRecommenderConfigurationResponse>
    createRecommenderConfiguration({
  required CreateRecommenderConfiguration createRecommenderConfiguration,
}) async {
  ArgumentError.checkNotNull(
      createRecommenderConfiguration, 'createRecommenderConfiguration');
  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),
  );
}