:doc:`LexModelsV2 <../../lexv2-models>` / Client / create_upload_url

*****************
create_upload_url
*****************



.. py:method:: LexModelsV2.Client.create_upload_url()

  

  Gets a pre-signed S3 write URL that you use to upload the zip archive when importing a bot or a bot locale.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/models.lex.v2-2020-08-07/CreateUploadUrl>`_  


  **Request Syntax**
  ::

    response = client.create_upload_url()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'importId': 'string',
          'uploadUrl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

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

        An identifier for a unique import job. Use it when you call the `StartImport <https://docs.aws.amazon.com/lexv2/latest/APIReference/API_StartImport.html>`__ operation.

        
      

      - **uploadUrl** *(string) --* 

        A pre-signed S3 write URL. Upload the zip archive file that contains the definition of your bot or bot locale.

        
  
  **Exceptions**
  
  *   :py:class:`LexModelsV2.Client.exceptions.ThrottlingException`

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

  
  *   :py:class:`LexModelsV2.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`LexModelsV2.Client.exceptions.ConflictException`

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

  