/AWS1/IF_EMR=>GETSTUDIOSESSIONMAPPING()¶
About GetStudioSessionMapping¶
Fetches mapping details for the specified Amazon EMR Studio and identity (user or group).
Method Signature¶
METHODS /AWS1/IF_EMR~GETSTUDIOSESSIONMAPPING
IMPORTING
!IV_STUDIOID TYPE /AWS1/EMRXMLSTRINGMAXLEN256 OPTIONAL
!IV_IDENTITYID TYPE /AWS1/EMRXMLSTRINGMAXLEN256 OPTIONAL
!IV_IDENTITYNAME TYPE /AWS1/EMRXMLSTRINGMAXLEN256 OPTIONAL
!IV_IDENTITYTYPE TYPE /AWS1/EMRIDENTITYTYPE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_emrgetstudiosessmap01
RAISING
/AWS1/CX_EMRINTERNALSERVERERR
/AWS1/CX_EMRINVALIDREQUESTEX
/AWS1/CX_EMRCLIENTEXC
/AWS1/CX_EMRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_studioid TYPE /AWS1/EMRXMLSTRINGMAXLEN256 /AWS1/EMRXMLSTRINGMAXLEN256¶
The ID of the Amazon EMR Studio.
iv_identitytype TYPE /AWS1/EMRIDENTITYTYPE /AWS1/EMRIDENTITYTYPE¶
Specifies whether the identity to fetch is a user or a group.
Optional arguments:¶
iv_identityid TYPE /AWS1/EMRXMLSTRINGMAXLEN256 /AWS1/EMRXMLSTRINGMAXLEN256¶
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
IdentityNameorIdentityIdmust be specified.
iv_identityname TYPE /AWS1/EMRXMLSTRINGMAXLEN256 /AWS1/EMRXMLSTRINGMAXLEN256¶
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
IdentityNameorIdentityIdmust be specified.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_emrgetstudiosessmap01 /AWS1/CL_EMRGETSTUDIOSESSMAP01¶
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->getstudiosessionmapping(
iv_identityid = |string|
iv_identityname = |string|
iv_identitytype = |string|
iv_studioid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_sessionmappingdetail = lo_result->get_sessionmapping( ).
IF lo_sessionmappingdetail IS NOT INITIAL.
lv_xmlstringmaxlen256 = lo_sessionmappingdetail->get_studioid( ).
lv_xmlstringmaxlen256 = lo_sessionmappingdetail->get_identityid( ).
lv_xmlstringmaxlen256 = lo_sessionmappingdetail->get_identityname( ).
lv_identitytype = lo_sessionmappingdetail->get_identitytype( ).
lv_xmlstringmaxlen256 = lo_sessionmappingdetail->get_sessionpolicyarn( ).
lv_date = lo_sessionmappingdetail->get_creationtime( ).
lv_date = lo_sessionmappingdetail->get_lastmodifiedtime( ).
ENDIF.
ENDIF.