startFHIRExportJob method
Start a FHIR export job.
May throw AccessDeniedException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
May throw ValidationException.
Parameter dataAccessRoleArn :
The Amazon Resource Name (ARN) used during initiation of the export job.
Parameter datastoreId :
The data store identifier from which files are being exported.
Parameter outputDataConfig :
The output data configuration supplied when the export job was started.
Parameter clientToken :
An optional user provided token used for ensuring API idempotency.
Parameter jobName :
The export job name.
Implementation
Future<StartFHIRExportJobResponse> startFHIRExportJob({
required String dataAccessRoleArn,
required String datastoreId,
required OutputDataConfig outputDataConfig,
String? clientToken,
String? jobName,
}) async {
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.0',
'X-Amz-Target': 'HealthLake.StartFHIRExportJob'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'DataAccessRoleArn': dataAccessRoleArn,
'DatastoreId': datastoreId,
'OutputDataConfig': outputDataConfig,
'ClientToken': clientToken ?? _s.generateIdempotencyToken(),
if (jobName != null) 'JobName': jobName,
},
);
return StartFHIRExportJobResponse.fromJson(jsonResponse.body);
}