:doc:`LexModelBuildingService <../../lex-models>` / Client / get_import

**********
get_import
**********



.. py:method:: LexModelBuildingService.Client.get_import(**kwargs)

  

  Gets information about an import job started with the ``StartImport`` operation.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lex-models-2017-04-19/GetImport>`_  


  **Request Syntax**
  ::

    response = client.get_import(
        importId='string'
    )
    
  :type importId: string
  :param importId: **[REQUIRED]** 

    The identifier of the import job information to return.

    

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

    
    ::

      {
          'name': 'string',
          'resourceType': 'BOT'|'INTENT'|'SLOT_TYPE',
          'mergeStrategy': 'OVERWRITE_LATEST'|'FAIL_ON_CONFLICT',
          'importId': 'string',
          'importStatus': 'IN_PROGRESS'|'COMPLETE'|'FAILED',
          'failureReason': [
              'string',
          ],
          'createdDate': datetime(2015, 1, 1)
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **name** *(string) --* 

        The name given to the import job.

        
      

      - **resourceType** *(string) --* 

        The type of resource imported.

        
      

      - **mergeStrategy** *(string) --* 

        The action taken when there was a conflict between an existing resource and a resource in the import file.

        
      

      - **importId** *(string) --* 

        The identifier for the specific import job.

        
      

      - **importStatus** *(string) --* 

        The status of the import job. If the status is ``FAILED``, you can get the reason for the failure from the ``failureReason`` field.

        
      

      - **failureReason** *(list) --* 

        A string that describes why an import job failed to complete.

        
        

        - *(string) --* 
    
      

      - **createdDate** *(datetime) --* 

        A timestamp for the date and time that the import job was created.

        
  
  **Exceptions**
  
  *   :py:class:`LexModelBuildingService.Client.exceptions.NotFoundException`

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.LimitExceededException`

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.InternalFailureException`

  
  *   :py:class:`LexModelBuildingService.Client.exceptions.BadRequestException`

  