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

*****************************
update_studio_session_mapping
*****************************



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

  

  Updates the session policy attached to the user or group for the specified Amazon EMR Studio.

  

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


  **Request Syntax**
  ::

    response = client.update_studio_session_mapping(
        StudioId='string',
        IdentityId='string',
        IdentityName='string',
        IdentityType='USER'|'GROUP',
        SessionPolicyArn='string'
    )
    
  :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 update. 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 update is a user or a group.

    

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

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

    

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

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

  