list_studio_session_mappings

list_studio_session_mappings(**kwargs)

Returns a list of all user or group session mappings for the Amazon EMR Studio specified by StudioId .

See also: AWS API Documentation

Request Syntax

response = client.list_studio_session_mappings(
    StudioId='string',
    IdentityType='USER'|'GROUP',
    Marker='string'
)
Parameters
  • StudioId (string) -- The ID of the Amazon EMR Studio.
  • IdentityType (string) -- Specifies whether to return session mappings for users or groups. If not specified, the results include session mapping details for both users and groups.
  • Marker (string) -- The pagination token that indicates the set of results to retrieve.
Return type

dict

Returns

Response Syntax

{
    'SessionMappings': [
        {
            'StudioId': 'string',
            'IdentityId': 'string',
            'IdentityName': 'string',
            'IdentityType': 'USER'|'GROUP',
            'SessionPolicyArn': 'string',
            'CreationTime': datetime(2015, 1, 1)
        },
    ],
    'Marker': 'string'
}

Response Structure

  • (dict) --

    • SessionMappings (list) --

      A list of session mapping summary objects. Each object includes session mapping details such as creation time, identity type (user or group), and Amazon EMR Studio ID.

      • (dict) --

        Details for an Amazon EMR Studio session mapping. The details do not include the time the session mapping was last modified.

        • StudioId (string) --

          The ID of the Amazon EMR Studio.

        • IdentityId (string) --

          The globally unique identifier (GUID) of the user or group from the IAM Identity Center Identity Store.

        • 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.

    • Marker (string) --

      The pagination token that indicates the next set of results to retrieve.

Exceptions

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