describeFHIRImportJob method

Future<DescribeFHIRImportJobResponse> describeFHIRImportJob({
  1. required String datastoreId,
  2. required String jobId,
})

Get the import job properties to learn more about the job or job progress.

May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter datastoreId : The data store identifier.

Parameter jobId : The import job identifier.

Implementation

Future<DescribeFHIRImportJobResponse> describeFHIRImportJob({
  required String datastoreId,
  required String jobId,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.0',
    'X-Amz-Target': 'HealthLake.DescribeFHIRImportJob'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'DatastoreId': datastoreId,
      'JobId': jobId,
    },
  );

  return DescribeFHIRImportJobResponse.fromJson(jsonResponse.body);
}