/AWS1/IF_CWL=>DESCRIBEDESTINATIONS()¶
About DescribeDestinations¶
Lists all your destinations. The results are ASCII-sorted by destination name.
Method Signature¶
METHODS /AWS1/IF_CWL~DESCRIBEDESTINATIONS
IMPORTING
!IV_DESTINATIONNAMEPREFIX TYPE /AWS1/CWLDESTINATIONNAME OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CWLNEXTTOKEN OPTIONAL
!IV_LIMIT TYPE /AWS1/CWLDESCRIBELIMIT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwldescrdstsresponse
RAISING
/AWS1/CX_CWLINVALIDPARAMETEREX
/AWS1/CX_CWLSERVICEUNAVAILEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_destinationnameprefix TYPE /AWS1/CWLDESTINATIONNAME /AWS1/CWLDESTINATIONNAME¶
The prefix to match. If you don't specify a value, no prefix filter is applied.
iv_nexttoken TYPE /AWS1/CWLNEXTTOKEN /AWS1/CWLNEXTTOKEN¶
The token for the next set of items to return. (You received this token from a previous call.)
iv_limit TYPE /AWS1/CWLDESCRIBELIMIT /AWS1/CWLDESCRIBELIMIT¶
The maximum number of items returned. If you don't specify a value, the default maximum value of 50 items is used.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwldescrdstsresponse /AWS1/CL_CWLDESCRDSTSRESPONSE¶
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->describedestinations(
iv_destinationnameprefix = |string|
iv_limit = 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_destinations( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_destinationname = lo_row_1->get_destinationname( ).
lv_targetarn = lo_row_1->get_targetarn( ).
lv_rolearn = lo_row_1->get_rolearn( ).
lv_accesspolicy = lo_row_1->get_accesspolicy( ).
lv_arn = lo_row_1->get_arn( ).
lv_timestamp = lo_row_1->get_creationtime( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.