Skip to content

StartFHIRImportJob

Source: src/AWS/HealthLake/StartFHIRImportJob.ts

Runtime binding for the StartFHIRImportJob operation (IAM action healthlake:StartFHIRImportJob), scoped to one FHIRDatastore.

Starts a bulk import of FHIR R4 NDJSON from S3 into the bound data store. The binding is constructed with the data store and the data-access role (the IAM role HealthLake assumes to read InputDataConfig.S3Uri and write JobOutputDataConfig; its trust policy must allow healthlake.amazonaws.com). The role’s ARN is injected as DataAccessRoleArn on every runtime request and the host is granted iam:PassRole on it alongside healthlake:StartFHIRImportJob on the data store. Track the job with DescribeFHIRImportJob. Provide the implementation with Effect.provide(AWS.HealthLake.StartFHIRImportJobHttp).

// deploy time — bind the data store and the HealthLake data-access role
const startImport = yield* HealthLake.StartFHIRImportJob(datastore, dataAccessRole);
// runtime
const job = yield* startImport({
InputDataConfig: { S3Uri: "s3://my-bucket/fhir-input/" },
JobOutputDataConfig: {
S3Configuration: {
S3Uri: "s3://my-bucket/fhir-output/",
KmsKeyId: kmsKeyArn,
},
},
});
// job.JobId, job.JobStatus === "SUBMITTED"