/AWS1/CL_KNV=>LISTTAGSFORSTREAM()
¶
About ListTagsForStream¶
Returns a list of tags associated with the specified stream.
In the request, you must specify either the StreamName
or the
StreamARN
.
Method Signature¶
IMPORTING¶
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/KNVNEXTTOKEN
/AWS1/KNVNEXTTOKEN
¶
If you specify this parameter and the result of a
ListTagsForStream
call is truncated, the response includes a token that you can use in the next request to fetch the next batch of tags.
iv_streamarn
TYPE /AWS1/KNVRESOURCEARN
/AWS1/KNVRESOURCEARN
¶
The Amazon Resource Name (ARN) of the stream that you want to list tags for.
iv_streamname
TYPE /AWS1/KNVSTREAMNAME
/AWS1/KNVSTREAMNAME
¶
The name of the stream that you want to list tags for.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_knvlisttagsforstrmout
/AWS1/CL_KNVLISTTAGSFORSTRMOUT
¶
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_knv~listtagsforstream(
iv_nexttoken = |string|
iv_streamarn = |string|
iv_streamname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_nexttoken = lo_result->get_nexttoken( ).
LOOP AT lo_result->get_tags( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.