
AWS Trigger
CertifiedTrigger a flow when a HealthLake import or export job reaches a terminal state
AWS Trigger
Trigger a flow when a HealthLake import or export job reaches a terminal state
Polls HealthLake import or export jobs at a fixed interval and fires when the most recently submitted
job for the given data store reaches a terminal state (COMPLETED, COMPLETED_WITH_ERRORS, FAILED, CANCEL_COMPLETED, or CANCEL_FAILED).
Exposes {{ trigger.jobId }} and {{ trigger.jobStatus }} to downstream tasks.
Note: listFhirImportJobs/listFhirExportJobs with maxResults(1) returns the most recently submitted job
but does not guarantee ordering by submit time; use submittedAfter filtering for strict ordering requirements.
type: io.kestra.plugin.aws.healthlake.TriggerExamples
Trigger a flow when a FHIR import job completes.
id: on_fhir_import_complete
namespace: company.team
triggers:
- id: import_done
type: io.kestra.plugin.aws.healthlake.Trigger
region: "{{ secret('AWS_REGION') }}"
accessKeyId: "{{ secret('AWS_ACCESS_KEY_ID') }}"
secretKeyId: "{{ secret('AWS_SECRET_ACCESS_KEY') }}"
datastoreId: "{{ secret('HEALTHLAKE_DATASTORE_ID') }}"
jobType: IMPORT
interval: PT2M
tasks:
- id: notify
type: io.kestra.plugin.core.log.Log
message: "FHIR import job {{ trigger.jobId }} finished with status {{ trigger.jobStatus }}"
Properties
datastoreId *Requiredstring
Data store ID
The HealthLake data store to monitor.
accessKeyId string
AWS access key ID
Optional static credential. If omitted, the default credentials provider chain is used.
allowConcurrent Non-dynamicboolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
endpointOverride string
Endpoint override
Override the default AWS endpoint URL.
interval Non-dynamicstring
PT2MdurationPoll interval
How often to poll HealthLake for job status. ISO-8601 duration, e.g. PT2M for every 2 minutes.
jobType string
IMPORTIMPORTEXPORTJob type
Whether to monitor IMPORT or EXPORT jobs. Default is IMPORT.
region string
AWS region
The AWS region for the HealthLake service.
secretKeyId string
AWS secret access key
Pairs with accessKeyId for static credentials.
sessionToken string
AWS session token
Session token for temporary credentials.
stopAfter Non-dynamicarray
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
stsEndpointOverride string
STS endpoint override
Override the default STS endpoint URL.
stsRoleArn string
STS role ARN
IAM role ARN to assume via STS before making API calls.
stsRoleExternalId string
STS role external ID
External ID to pass when assuming the STS role.
stsRoleSessionDuration string
PT15MAWS STS Session duration
The duration of the role session (default: 15 minutes, i.e., PT15M). This property is only used when an stsRoleArn is defined.
stsRoleSessionName string
STS role session name
Session name to use when assuming the STS role.
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
jobId string
Job ID
The ID of the job that reached a terminal state.
jobStatus string
Job status
Terminal status: COMPLETED, COMPLETED_WITH_ERRORS, FAILED, CANCEL_COMPLETED, or CANCEL_FAILED.