deleteJob method
Deletes a job. This operation is idempotent. If the job is currently
running, you must stop it before deleting it by calling
StopJob.
The following operations are related to DeleteJob:
-
CreateJob -
StopJob -
DescribeJob
May throw ResourceInUse.
May throw ResourceNotFound.
Parameter jobCategory :
The category of the job to delete.
Parameter jobName :
The name of the job to delete.
Implementation
Future<void> deleteJob({
required JobCategory jobCategory,
required String jobName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DeleteJob'
};
await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'JobCategory': jobCategory.value,
'JobName': jobName,
},
);
}