describeFHIRExportJob method

Future<DescribeFHIRExportJobResponse> describeFHIRExportJob({
  1. required String datastoreId,
  2. required String jobId,
})

Get FHIR export job properties.

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

Parameter datastoreId : The data store identifier from which FHIR data is being exported from.

Parameter jobId : The export job identifier.

Implementation

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

  return DescribeFHIRExportJobResponse.fromJson(jsonResponse.body);
}