HealthLake / Client / list_fhir_import_jobs

list_fhir_import_jobs

HealthLake.Client.list_fhir_import_jobs(**kwargs)

List all FHIR import jobs associated with an account and their statuses.

See also: AWS API Documentation

Request Syntax

response = client.list_fhir_import_jobs(
    DatastoreId='string',
    NextToken='string',
    MaxResults=123,
    JobName='string',
    JobStatus='SUBMITTED'|'QUEUED'|'IN_PROGRESS'|'COMPLETED_WITH_ERRORS'|'COMPLETED'|'FAILED'|'CANCEL_SUBMITTED'|'CANCEL_IN_PROGRESS'|'CANCEL_COMPLETED'|'CANCEL_FAILED',
    SubmittedBefore=datetime(2015, 1, 1),
    SubmittedAfter=datetime(2015, 1, 1)
)
Parameters:
  • DatastoreId (string) –

    [REQUIRED]

    Limits the response to the import job with the specified data store ID.

  • NextToken (string) – The pagination token used to identify the next page of results to return.

  • MaxResults (integer) – Limits the number of results returned for ListFHIRImportJobs to a maximum quantity specified by the user.

  • JobName (string) – Limits the response to the import job with the specified job name.

  • JobStatus (string) – Limits the response to the import job with the specified job status.

  • SubmittedBefore (datetime) – Limits the response to FHIR import jobs submitted before a user- specified date.

  • SubmittedAfter (datetime) – Limits the response to FHIR import jobs submitted after a user-specified date.

Return type:

dict

Returns:

Response Syntax

{
    'ImportJobPropertiesList': [
        {
            'JobId': 'string',
            'JobName': 'string',
            'JobStatus': 'SUBMITTED'|'QUEUED'|'IN_PROGRESS'|'COMPLETED_WITH_ERRORS'|'COMPLETED'|'FAILED'|'CANCEL_SUBMITTED'|'CANCEL_IN_PROGRESS'|'CANCEL_COMPLETED'|'CANCEL_FAILED',
            'SubmitTime': datetime(2015, 1, 1),
            'EndTime': datetime(2015, 1, 1),
            'DatastoreId': 'string',
            'InputDataConfig': {
                'S3Uri': 'string'
            },
            'JobOutputDataConfig': {
                'S3Configuration': {
                    'S3Uri': 'string',
                    'KmsKeyId': 'string'
                }
            },
            'JobProgressReport': {
                'TotalNumberOfScannedFiles': 123,
                'TotalSizeOfScannedFilesInMB': 123.0,
                'TotalNumberOfImportedFiles': 123,
                'TotalNumberOfResourcesScanned': 123,
                'TotalNumberOfResourcesImported': 123,
                'TotalNumberOfResourcesWithCustomerError': 123,
                'TotalNumberOfFilesReadWithCustomerError': 123,
                'Throughput': 123.0
            },
            'DataAccessRoleArn': 'string',
            'Message': 'string',
            'ValidationLevel': 'strict'|'structure-only'|'minimal'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) –

    • ImportJobPropertiesList (list) –

      The properties for listed import jobs.

      • (dict) –

        The import job properties.

        • JobId (string) –

          The import job identifier.

        • JobName (string) –

          The import job name.

        • JobStatus (string) –

          The import job status.

        • SubmitTime (datetime) –

          The time the import job was submitted for processing.

        • EndTime (datetime) –

          The time the import job was completed.

        • DatastoreId (string) –

          The data store identifier.

        • InputDataConfig (dict) –

          The input data configuration supplied when the import job was created.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: S3Uri. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • S3Uri (string) –

            The S3Uri is the user-specified S3 location of the FHIR data to be imported into AWS HealthLake.

        • JobOutputDataConfig (dict) –

          The output data configuration supplied when the export job was created.

          Note

          This is a Tagged Union structure. Only one of the following top level keys will be set: S3Configuration. If a client receives an unknown member it will set SDK_UNKNOWN_MEMBER as the top level key, which maps to the name or tag of the unknown member. The structure of SDK_UNKNOWN_MEMBER is as follows:

          'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
          
          • S3Configuration (dict) –

            The output data configuration supplied when the export job was created.

            • S3Uri (string) –

              The S3Uri is the user-specified S3 location of the FHIR data to be imported into AWS HealthLake.

            • KmsKeyId (string) –

              The Key Management Service (KMS) key ID used to access the S3 bucket.

        • JobProgressReport (dict) –

          Displays the progress of the import job, including total resources scanned, total resources imported, and total size of data imported.

          • TotalNumberOfScannedFiles (integer) –

            The number of files scanned from the S3 input bucket.

          • TotalSizeOfScannedFilesInMB (float) –

            The size (in MB) of files scanned from the S3 input bucket.

          • TotalNumberOfImportedFiles (integer) –

            The number of files imported.

          • TotalNumberOfResourcesScanned (integer) –

            The number of resources scanned from the S3 input bucket.

          • TotalNumberOfResourcesImported (integer) –

            The number of resources imported.

          • TotalNumberOfResourcesWithCustomerError (integer) –

            The number of resources that failed due to customer error.

          • TotalNumberOfFilesReadWithCustomerError (integer) –

            The number of files that failed to be read from the S3 input bucket due to customer error.

          • Throughput (float) –

            The transaction rate the import job is processed at.

        • DataAccessRoleArn (string) –

          The Amazon Resource Name (ARN) that grants AWS HealthLake access to the input data.

        • Message (string) –

          An explanation of any errors that might have occurred during the FHIR import job.

        • ValidationLevel (string) –

          The validation level of the import job.

    • NextToken (string) –

      The pagination token used to identify the next page of results to return.

Exceptions

  • HealthLake.Client.exceptions.ValidationException

  • HealthLake.Client.exceptions.ResourceNotFoundException

  • HealthLake.Client.exceptions.AccessDeniedException

  • HealthLake.Client.exceptions.ThrottlingException

  • HealthLake.Client.exceptions.InternalServerException