describeCompilationJob method

Future<DescribeCompilationJobResponse> describeCompilationJob({
  1. required String compilationJobName,
})

Returns information about a model compilation job.

To create a model compilation job, use CreateCompilationJob. To get information about multiple model compilation jobs, use ListCompilationJobs.

May throw ResourceNotFound.

Parameter compilationJobName : The name of the model compilation job that you want information about.

Implementation

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

  return DescribeCompilationJobResponse.fromJson(jsonResponse.body);
}