describeProcessingJob method

Future<DescribeProcessingJobResponse> describeProcessingJob({
  1. required String processingJobName,
})

Returns a description of a processing job.

May throw ResourceNotFound.

Parameter processingJobName : The name of the processing job. The name must be unique within an AWS Region in the AWS account.

Implementation

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

  return DescribeProcessingJobResponse.fromJson(jsonResponse.body);
}