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

********************
list_imported_models
********************



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

  

  Returns a list of models you've imported. 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/ListImportedModels>`_  


  **Request Syntax**
  ::

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

    Return imported models that created before the specified time.

    

  
  :type creationTimeAfter: datetime
  :param creationTimeAfter: 

    Return imported models that were created after the specified time.

    

  
  :type nameContains: string
  :param nameContains: 

    Return imported models only if the model 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 models.

    

  
  :type sortOrder: string
  :param sortOrder: 

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

    

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

    
    ::

      {
          'nextToken': 'string',
          'modelSummaries': [
              {
                  'modelArn': 'string',
                  'modelName': 'string',
                  'creationTime': datetime(2015, 1, 1),
                  'instructSupported': True|False,
                  'modelArchitecture': 'string'
              },
          ]
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

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

        
      

      - **modelSummaries** *(list) --* 

        Model summaries.

        
        

        - *(dict) --* 

          Information about the imported model.

          
          

          - **modelArn** *(string) --* 

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

            
          

          - **modelName** *(string) --* 

            Name of the imported model.

            
          

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

            Creation time of the imported model.

            
          

          - **instructSupported** *(boolean) --* 

            Specifies if the imported model supports converse.

            
          

          - **modelArchitecture** *(string) --* 

            The architecture 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`

  