:doc:`DeadlineCloud <../../deadline>` / Client / update_session

**************
update_session
**************



.. py:method:: DeadlineCloud.Client.update_session(**kwargs)

  

  Updates a session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/deadline-2023-10-12/UpdateSession>`_  


  **Request Syntax**
  ::

    response = client.update_session(
        clientToken='string',
        targetLifecycleStatus='ENDED',
        farmId='string',
        queueId='string',
        jobId='string',
        sessionId='string'
    )
    
  :type clientToken: string
  :param clientToken: 

    The unique token which the server uses to recognize retries of the same request.

    This field is autopopulated if not provided.

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

    The life cycle status to update in the session.

    

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

    The farm ID to update in the session.

    

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

    The queue ID to update in the session.

    

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

    The job ID to update in the session.

    

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

    The session ID to update.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 
  
  **Exceptions**
  
  *   :py:class:`DeadlineCloud.Client.exceptions.AccessDeniedException`

  
  *   :py:class:`DeadlineCloud.Client.exceptions.InternalServerErrorException`

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

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

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

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

  