deleteRetrainingScheduler method

Future<void> deleteRetrainingScheduler({
  1. required String modelName,
})

Deletes a retraining scheduler from a model. The retraining scheduler must be in the STOPPED status.

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

Implementation

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