:doc:`EMR <../../emr>` / Client / get_studio_session_mapping

**************************
get_studio_session_mapping
**************************



.. py:method:: EMR.Client.get_studio_session_mapping(**kwargs)

  

  Fetches mapping details for the specified Amazon EMR Studio and identity (user or group).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticmapreduce-2009-03-31/GetStudioSessionMapping>`_  


  **Request Syntax**
  ::

    response = client.get_studio_session_mapping(
        StudioId='string',
        IdentityId='string',
        IdentityName='string',
        IdentityType='USER'|'GROUP'
    )
    
  :type StudioId: string
  :param StudioId: **[REQUIRED]** 

    The ID of the Amazon EMR Studio.

    

  
  :type IdentityId: string
  :param IdentityId: 

    The globally unique identifier (GUID) of the user or group. For more information, see `UserId <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserId>`__ and `GroupId <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-GroupId>`__ in the *IAM Identity Center Identity Store API Reference*. Either ``IdentityName`` or ``IdentityId`` must be specified.

    

  
  :type IdentityName: string
  :param IdentityName: 

    The name of the user or group to fetch. For more information, see `UserName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName>`__ and `DisplayName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName>`__ in the *IAM Identity Center Identity Store API Reference*. Either ``IdentityName`` or ``IdentityId`` must be specified.

    

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

    Specifies whether the identity to fetch is a user or a group.

    

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

    
    ::

      {
          'SessionMapping': {
              'StudioId': 'string',
              'IdentityId': 'string',
              'IdentityName': 'string',
              'IdentityType': 'USER'|'GROUP',
              'SessionPolicyArn': 'string',
              'CreationTime': datetime(2015, 1, 1),
              'LastModifiedTime': datetime(2015, 1, 1)
          }
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **SessionMapping** *(dict) --* 

        The session mapping details for the specified Amazon EMR Studio and identity, including session policy ARN and creation time.

        
        

        - **StudioId** *(string) --* 

          The ID of the Amazon EMR Studio.

          
        

        - **IdentityId** *(string) --* 

          The globally unique identifier (GUID) of the user or group.

          
        

        - **IdentityName** *(string) --* 

          The name of the user or group. For more information, see `UserName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_User.html#singlesignon-Type-User-UserName>`__ and `DisplayName <https://docs.aws.amazon.com/singlesignon/latest/IdentityStoreAPIReference/API_Group.html#singlesignon-Type-Group-DisplayName>`__ in the *IAM Identity Center Identity Store API Reference*.

          
        

        - **IdentityType** *(string) --* 

          Specifies whether the identity mapped to the Amazon EMR Studio is a user or a group.

          
        

        - **SessionPolicyArn** *(string) --* 

          The Amazon Resource Name (ARN) of the session policy associated with the user or group.

          
        

        - **CreationTime** *(datetime) --* 

          The time the session mapping was created.

          
        

        - **LastModifiedTime** *(datetime) --* 

          The time the session mapping was last modified.

          
    
  
  **Exceptions**
  
  *   :py:class:`EMR.Client.exceptions.InternalServerError`

  
  *   :py:class:`EMR.Client.exceptions.InvalidRequestException`

  