Skip to content

/AWS1/CL_LKF=>LISTRESOURCES()

About ListResources

Lists the resources registered to be managed by the Data Catalog.

Method Signature

IMPORTING

Optional arguments:

it_filterconditionlist TYPE /AWS1/CL_LKFFILTERCONDITION=>TT_FILTERCONDITIONLIST TT_FILTERCONDITIONLIST

Any applicable row-level and/or column-level filtering conditions for the resources.

iv_maxresults TYPE /AWS1/LKFPAGESIZE /AWS1/LKFPAGESIZE

The maximum number of resource results.

iv_nexttoken TYPE /AWS1/LKFTOKEN /AWS1/LKFTOKEN

A continuation token, if this is not the first call to retrieve these resources.

RETURNING

oo_output TYPE REF TO /aws1/cl_lkflistresourcesrsp /AWS1/CL_LKFLISTRESOURCESRSP

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_lkf~listresources(
  it_filterconditionlist = VALUE /aws1/cl_lkffiltercondition=>tt_filterconditionlist(
    (
      new /aws1/cl_lkffiltercondition(
        it_stringvaluelist = VALUE /aws1/cl_lkfstringvaluelist_w=>tt_stringvaluelist(
          ( new /aws1/cl_lkfstringvaluelist_w( |string| ) )
        )
        iv_comparisonoperator = |string|
        iv_field = |string|
      )
    )
  )
  iv_maxresults = 123
  iv_nexttoken = |string|
).

This is an example of reading all possible response values

lo_result = lo_result.
IF lo_result IS NOT INITIAL.
  LOOP AT lo_result->get_resourceinfolist( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_resourcearnstring = lo_row_1->get_resourcearn( ).
      lv_iamrolearn = lo_row_1->get_rolearn( ).
      lv_lastmodifiedtimestamp = lo_row_1->get_lastmodified( ).
      lv_nullableboolean = lo_row_1->get_withfederation( ).
      lv_nullableboolean = lo_row_1->get_hybridaccessenabled( ).
      lv_nullableboolean = lo_row_1->get_withprivilegedaccess( ).
    ENDIF.
  ENDLOOP.
  lv_token = lo_result->get_nexttoken( ).
ENDIF.