listFHIRExportJobs method
Lists all FHIR export jobs associated with an account and their statuses.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter datastoreId :
Limits the response to the export job with the specified data store ID.
Parameter jobName :
Limits the response to the export job with the specified job name.
Parameter jobStatus :
Limits the response to export jobs with the specified job status.
Parameter maxResults :
Limits the number of results returned for a ListFHIRExportJobs to a
maximum quantity specified by the user.
Parameter nextToken :
A pagination token used to identify the next page of results to return.
Parameter submittedAfter :
Limits the response to FHIR export jobs submitted after a user-specified
date.
Parameter submittedBefore :
Limits the response to FHIR export jobs submitted before a user- specified
date.
Implementation
Future<ListFHIRExportJobsResponse> listFHIRExportJobs({
required String datastoreId,
String? jobName,
JobStatus? jobStatus,
int? maxResults,
String? nextToken,
DateTime? submittedAfter,
DateTime? submittedBefore,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
500,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.ListFHIRExportJobs'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DatastoreId': datastoreId,
if (jobName != null) 'JobName': jobName,
if (jobStatus != null) 'JobStatus': jobStatus.value,
if (maxResults != null) 'MaxResults': maxResults,
if (nextToken != null) 'NextToken': nextToken,
if (submittedAfter != null)
'SubmittedAfter': unixTimestampToJson(submittedAfter),
if (submittedBefore != null)
'SubmittedBefore': unixTimestampToJson(submittedBefore),
},
);
return ListFHIRExportJobsResponse.fromJson(jsonResponse.body);
}