:doc:`Amplify <../../amplify>` / Client / create_deployment

*****************
create_deployment
*****************



.. py:method:: Amplify.Client.create_deployment(**kwargs)

  

  Creates a deployment for a manually deployed Amplify app. Manually deployed apps are not connected to a Git repository.

   

  The maximum duration between the ``CreateDeployment`` call and the ``StartDeployment`` call cannot exceed 8 hours. If the duration exceeds 8 hours, the ``StartDeployment`` call and the associated ``Job`` will fail.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/amplify-2017-07-25/CreateDeployment>`_  


  **Request Syntax**
  ::

    response = client.create_deployment(
        appId='string',
        branchName='string',
        fileMap={
            'string': 'string'
        }
    )
    
  :type appId: string
  :param appId: **[REQUIRED]** 

    The unique ID for an Amplify app.

    

  
  :type branchName: string
  :param branchName: **[REQUIRED]** 

    The name of the branch to use for the job.

    

  
  :type fileMap: dict
  :param fileMap: 

    An optional file map that contains the file name as the key and the file content md5 hash as the value. If this argument is provided, the service will generate a unique upload URL per file. Otherwise, the service will only generate a single upload URL for the zipped files.

    

  
    - *(string) --* 

    
      - *(string) --* 

      


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

    
    ::

      {
          'jobId': 'string',
          'fileUploadUrls': {
              'string': 'string'
          },
          'zipUploadUrl': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      The result structure for the create a new deployment request.

      
      

      - **jobId** *(string) --* 

        The job ID for this deployment. will supply to start deployment api.

        
      

      - **fileUploadUrls** *(dict) --* 

        When the ``fileMap`` argument is provided in the request, ``fileUploadUrls`` will contain a map of file names to upload URLs.

        
        

        - *(string) --* 
          

          - *(string) --* 
    
  
      

      - **zipUploadUrl** *(string) --* 

        When the ``fileMap`` argument is not provided in the request, this ``zipUploadUrl`` is returned.

        
  
  **Exceptions**
  
  *   :py:class:`Amplify.Client.exceptions.BadRequestException`

  
  *   :py:class:`Amplify.Client.exceptions.UnauthorizedException`

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

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

  