listFHIRImportJobs method
List all FHIR import 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 import job with the specified data store ID.
Parameter jobName :
Limits the response to the import job with the specified job name.
Parameter jobStatus :
Limits the response to the import job with the specified job status.
Parameter maxResults :
Limits the number of results returned for ListFHIRImportJobs
to a maximum quantity specified by the user.
Parameter nextToken :
The pagination token used to identify the next page of results to return.
Parameter submittedAfter :
Limits the response to FHIR import jobs submitted after a user-specified
date.
Parameter submittedBefore :
Limits the response to FHIR import jobs submitted before a user- specified
date.
Implementation
Future<ListFHIRImportJobsResponse> listFHIRImportJobs({
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.ListFHIRImportJobs'
};
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 ListFHIRImportJobsResponse.fromJson(jsonResponse.body);
}