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'
)
[REQUIRED]
The ID of the Amazon EMR Studio.
IdentityName
or IdentityId
must be specified.IdentityName
or IdentityId
must be specified.[REQUIRED]
Specifies whether the identity to fetch is a user or a group.
dict
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