:doc:`QApps <../../qapps>` / Client / get_q_app_session_metadata

**************************
get_q_app_session_metadata
**************************



.. py:method:: QApps.Client.get_q_app_session_metadata(**kwargs)

  

  Retrieves the current configuration of a Q App session.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/qapps-2023-11-27/GetQAppSessionMetadata>`_  


  **Request Syntax**
  ::

    response = client.get_q_app_session_metadata(
        instanceId='string',
        sessionId='string'
    )
    
  :type instanceId: string
  :param instanceId: **[REQUIRED]** 

    The unique identifier of the Amazon Q Business application environment instance.

    

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

    The unique identifier of the Q App session.

    

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

    
    ::

      {
          'sessionId': 'string',
          'sessionArn': 'string',
          'sessionName': 'string',
          'sharingConfiguration': {
              'enabled': True|False,
              'acceptResponses': True|False,
              'revealCards': True|False
          },
          'sessionOwner': True|False
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **sessionId** *(string) --* 

        The unique identifier of the Q App session.

        
      

      - **sessionArn** *(string) --* 

        The Amazon Resource Name (ARN) of the Q App session.

        
      

      - **sessionName** *(string) --* 

        The name of the Q App session.

        
      

      - **sharingConfiguration** *(dict) --* 

        The sharing configuration of the Q App data collection session.

        
        

        - **enabled** *(boolean) --* 

          Indicates whether an Q App session is shareable with other users.

          
        

        - **acceptResponses** *(boolean) --* 

          Indicates whether an Q App session can accept responses from users.

          
        

        - **revealCards** *(boolean) --* 

          Indicates whether collected responses for an Q App session are revealed for all users.

          
    
      

      - **sessionOwner** *(boolean) --* 

        Indicates whether the current user is the owner of the Q App session.

        
  
  **Exceptions**
  
  *   :py:class:`QApps.Client.exceptions.ResourceNotFoundException`

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

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

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

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

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

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

  