:doc:`Bedrock <../../bedrock>` / Client / list_model_import_jobs

**********************
list_model_import_jobs
**********************



.. py:method:: Bedrock.Client.list_model_import_jobs(**kwargs)

  

  Returns a list of import jobs you've submitted. You can filter the results to return based on one or more criteria. For more information, see `Import a customized model <https://docs.aws.amazon.com/bedrock/latest/userguide/model-customization-import-model.html>`__ in the `Amazon Bedrock User Guide <https://docs.aws.amazon.com/bedrock/latest/userguide/what-is-service.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/bedrock-2023-04-20/ListModelImportJobs>`_  


  **Request Syntax**
  ::

    response = client.list_model_import_jobs(
        creationTimeAfter=datetime(2015, 1, 1),
        creationTimeBefore=datetime(2015, 1, 1),
        statusEquals='InProgress'|'Completed'|'Failed',
        nameContains='string',
        maxResults=123,
        nextToken='string',
        sortBy='CreationTime',
        sortOrder='Ascending'|'Descending'
    )
    
  :type creationTimeAfter: datetime
  :param creationTimeAfter: 

    Return import jobs that were created after the specified time.

    

  
  :type creationTimeBefore: datetime
  :param creationTimeBefore: 

    Return import jobs that were created before the specified time.

    

  
  :type statusEquals: string
  :param statusEquals: 

    Return imported jobs with the specified status.

    

  
  :type nameContains: string
  :param nameContains: 

    Return imported jobs only if the job name contains these characters.

    

  
  :type maxResults: integer
  :param maxResults: 

    The maximum number of results to return in the response. If the total number of results is greater than this value, use the token returned in the response in the ``nextToken`` field when making another request to return the next batch of results.

    

  
  :type nextToken: string
  :param nextToken: 

    If the total number of results is greater than the ``maxResults`` value provided in the request, enter the token returned in the ``nextToken`` field in the response in this field to return the next batch of results.

    

  
  :type sortBy: string
  :param sortBy: 

    The field to sort by in the returned list of imported jobs.

    

  
  :type sortOrder: string
  :param sortOrder: 

    Specifies whether to sort the results in ascending or descending order.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'nextToken': 'string',
          'modelImportJobSummaries': [
              {
                  'jobArn': 'string',
                  'jobName': 'string',
                  'status': 'InProgress'|'Completed'|'Failed',
                  'lastModifiedTime': datetime(2015, 1, 1),
                  'creationTime': datetime(2015, 1, 1),
                  'endTime': datetime(2015, 1, 1),
                  'importedModelArn': 'string',
                  'importedModelName': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **nextToken** *(string) --* 

        If the total number of results is greater than the ``maxResults`` value provided in the request, enter the token returned in the ``nextToken`` field in the response in this field to return the next batch of results.

        
      

      - **modelImportJobSummaries** *(list) --* 

        Import job summaries.

        
        

        - *(dict) --* 

          Information about the import job.

          
          

          - **jobArn** *(string) --* 

            The Amazon Resource Name (ARN) of the import job.

            
          

          - **jobName** *(string) --* 

            The name of the import job.

            
          

          - **status** *(string) --* 

            The status of the imported job.

            
          

          - **lastModifiedTime** *(datetime) --* 

            The time when the import job was last modified.

            
          

          - **creationTime** *(datetime) --* 

            The time import job was created.

            
          

          - **endTime** *(datetime) --* 

            The time when import job ended.

            
          

          - **importedModelArn** *(string) --* 

            The Amazon resource Name (ARN) of the imported model.

            
          

          - **importedModelName** *(string) --* 

            The name of the imported model.

            
      
    
  
  **Exceptions**
  
  *   :py:class:`Bedrock.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`Bedrock.Client.exceptions.ValidationException`

  
  *   :py:class:`Bedrock.Client.exceptions.InternalServerException`

  
  *   :py:class:`Bedrock.Client.exceptions.ThrottlingException`

  