update_studio_session_mapping

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

Request Syntax

response = client.update_studio_session_mapping(
    StudioId='string',
    IdentityId='string',
    IdentityName='string',
    IdentityType='USER'|'GROUP',
    SessionPolicyArn='string'
)
Parameters
  • StudioId (string) --

    [REQUIRED]

    The ID of the Amazon EMR Studio.

  • IdentityId (string) -- The globally unique identifier (GUID) of the user or group. For more information, see UserId and GroupId in the IAM Identity Center Identity Store API Reference . Either IdentityName or IdentityId must be specified.
  • IdentityName (string) -- The name of the user or group to update. For more information, see UserName and DisplayName in the IAM Identity Center Identity Store API Reference . Either IdentityName or IdentityId must be specified.
  • IdentityType (string) --

    [REQUIRED]

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

  • SessionPolicyArn (string) --

    [REQUIRED]

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

Returns

None

Exceptions

  • EMR.Client.exceptions.InternalServerError
  • EMR.Client.exceptions.InvalidRequestException