EMR / Client / get_studio_session_mapping

get_studio_session_mapping#

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

Request Syntax

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

Return type:

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 and 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

  • EMR.Client.exceptions.InternalServerError

  • EMR.Client.exceptions.InvalidRequestException