Skip to content

/AWS1/CL_EMR=>LISTSTUDIOSESSIONMAPPINGS()

About ListStudioSessionMappings

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

Method Signature

IMPORTING

Optional arguments:

iv_studioid TYPE /AWS1/EMRXMLSTRINGMAXLEN256 /AWS1/EMRXMLSTRINGMAXLEN256

The ID of the Amazon EMR Studio.

iv_identitytype TYPE /AWS1/EMRIDENTITYTYPE /AWS1/EMRIDENTITYTYPE

Specifies whether to return session mappings for users or groups. If not specified, the results include session mapping details for both users and groups.

iv_marker TYPE /AWS1/EMRMARKER /AWS1/EMRMARKER

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

RETURNING

oo_output TYPE REF TO /aws1/cl_emrlststudiosessmap01 /AWS1/CL_EMRLSTSTUDIOSESSMAP01

Domain /AWS1/RT_ACCOUNT_ID
Primitive Type NUMC

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->/aws1/if_emr~liststudiosessionmappings(
  iv_identitytype = |string|
  iv_marker = |string|
  iv_studioid = |string|
).

This is an example of reading all possible response values

LOOP AT lo_result->get_sessionmappings( ) into lo_row.
  lv_xmlstringmaxlen256 = lo_row_1->get_studioid( ).
  lv_xmlstringmaxlen256 = lo_row_1->get_identityid( ).
  lv_xmlstringmaxlen256 = lo_row_1->get_identityname( ).
  lv_identitytype = lo_row_1->get_identitytype( ).
  lv_xmlstringmaxlen256 = lo_row_1->get_sessionpolicyarn( ).
  lv_date = lo_row_1->get_creationtime( ).
ENDLOOP.
lv_marker = lo_result->get_marker( ).