/AWS1/CL_FNT=>LISTKEYVALUESTORES()
¶
About ListKeyValueStores¶
Specifies the key value stores to list.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_marker
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The marker associated with the key value stores list.
iv_maxitems
TYPE /AWS1/FNTINTEGER
/AWS1/FNTINTEGER
¶
The maximum number of items in the key value stores list.
iv_status
TYPE /AWS1/FNTSTRING
/AWS1/FNTSTRING
¶
The status of the request for the key value stores list.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_fntlistkeyvalstoresrs
/AWS1/CL_FNTLISTKEYVALSTORESRS
¶
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_fnt~listkeyvaluestores(
iv_marker = |string|
iv_maxitems = 123
iv_status = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lo_keyvaluestorelist = lo_result->get_keyvaluestorelist( ).
IF lo_keyvaluestorelist IS NOT INITIAL.
lv_string = lo_keyvaluestorelist->get_nextmarker( ).
lv_integer = lo_keyvaluestorelist->get_maxitems( ).
lv_integer = lo_keyvaluestorelist->get_quantity( ).
LOOP AT lo_keyvaluestorelist->get_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_name( ).
lv_string = lo_row_1->get_id( ).
lv_string = lo_row_1->get_comment( ).
lv_string = lo_row_1->get_arn( ).
lv_string = lo_row_1->get_status( ).
lv_timestamp = lo_row_1->get_lastmodifiedtime( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
To get a list of KeyValueStores¶
The following command retrieves a list of KeyValueStores with READY status.
DATA(lo_result) = lo_client->/aws1/if_fnt~listkeyvaluestores( iv_status = |READY| ) .