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

*****************************
delete_studio_session_mapping
*****************************



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

  

  Removes a user or group from an Amazon EMR Studio.

  

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


  **Request Syntax**
  ::

    response = client.delete_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 to remove from the Amazon EMR Studio. 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 name or group to remove from the Amazon EMR Studio. 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 Store API Reference*. Either ``IdentityName`` or ``IdentityId`` must be specified.

    

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

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

    

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

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

  