:doc:`CodeCatalyst <../../codecatalyst>` / Client / verify_session

**************
verify_session
**************



.. py:method:: CodeCatalyst.Client.verify_session()

  

  Verifies whether the calling user has a valid Amazon CodeCatalyst login and session. If successful, this returns the ID of the user in Amazon CodeCatalyst.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/codecatalyst-2022-09-28/VerifySession>`_  


  **Request Syntax**

  ::

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

    
    ::

      {
          'identity': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **identity** *(string) --* 

        The system-generated unique ID of the user in Amazon CodeCatalyst.

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

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

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

  
  *   :py:class:`CodeCatalyst.Client.exceptions.ServiceQuotaExceededException`

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

  
  *   :py:class:`CodeCatalyst.Client.exceptions.AccessDeniedException`

  