describeTrainingJob method
Returns information about a training job.
May throw ResourceNotFound.
Parameter trainingJobName
:
The name of the training job.
Implementation
Future<DescribeTrainingJobResponse> describeTrainingJob({
required String trainingJobName,
}) async {
ArgumentError.checkNotNull(trainingJobName, 'trainingJobName');
_s.validateStringLength(
'trainingJobName',
trainingJobName,
1,
63,
isRequired: true,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'SageMaker.DescribeTrainingJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'TrainingJobName': trainingJobName,
},
);
return DescribeTrainingJobResponse.fromJson(jsonResponse.body);
}