describeLabelingJob method

Future<DescribeLabelingJobResponse> describeLabelingJob({
  1. required String labelingJobName,
})

Gets information about a labeling job.

May throw ResourceNotFound.

Parameter labelingJobName : The name of the labeling job to return information for.

Implementation

Future<DescribeLabelingJobResponse> describeLabelingJob({
  required String labelingJobName,
}) async {
  ArgumentError.checkNotNull(labelingJobName, 'labelingJobName');
  _s.validateStringLength(
    'labelingJobName',
    labelingJobName,
    1,
    63,
    isRequired: true,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SageMaker.DescribeLabelingJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'LabelingJobName': labelingJobName,
    },
  );

  return DescribeLabelingJobResponse.fromJson(jsonResponse.body);
}