stopRetrainingScheduler method

Future<StopRetrainingSchedulerResponse> stopRetrainingScheduler({
  1. required String modelName,
})

Stops 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 stop.

Implementation

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

  return StopRetrainingSchedulerResponse.fromJson(jsonResponse.body);
}