startRetrainingScheduler method

Future<StartRetrainingSchedulerResponse> startRetrainingScheduler({
  1. required String modelName,
})

Starts a retraining scheduler.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter modelName : The name of the model whose retraining scheduler you want to start.

Implementation

Future<StartRetrainingSchedulerResponse> startRetrainingScheduler({
  required String modelName,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target':
        'AWSLookoutEquipmentFrontendService.StartRetrainingScheduler'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'ModelName': modelName,
    },
  );

  return StartRetrainingSchedulerResponse.fromJson(jsonResponse.body);
}