/AWS1/IF_SLK=>LISTLOGSOURCES()¶
About ListLogSources¶
Retrieves the log sources.
Method Signature¶
METHODS /AWS1/IF_SLK~LISTLOGSOURCES
IMPORTING
!IT_ACCOUNTS TYPE /AWS1/CL_SLKACCOUNTLIST_W=>TT_ACCOUNTLIST OPTIONAL
!IT_REGIONS TYPE /AWS1/CL_SLKREGIONLIST_W=>TT_REGIONLIST OPTIONAL
!IT_SOURCES TYPE /AWS1/CL_SLKLOGSOURCERESOURCE=>TT_LOGSOURCERESOURCELIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/SLKMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/SLKNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_slklistlogsourcesrsp
RAISING
/AWS1/CX_SLKACCESSDENIEDEX
/AWS1/CX_SLKBADREQUESTEX
/AWS1/CX_SLKCONFLICTEXCEPTION
/AWS1/CX_SLKINTERNALSERVEREX
/AWS1/CX_SLKRESOURCENOTFOUNDEX
/AWS1/CX_SLKTHROTTLINGEX
/AWS1/CX_SLKCLIENTEXC
/AWS1/CX_SLKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
it_accounts TYPE /AWS1/CL_SLKACCOUNTLIST_W=>TT_ACCOUNTLIST TT_ACCOUNTLIST¶
The list of Amazon Web Services accounts for which log sources are displayed.
it_regions TYPE /AWS1/CL_SLKREGIONLIST_W=>TT_REGIONLIST TT_REGIONLIST¶
The list of Regions for which log sources are displayed.
it_sources TYPE /AWS1/CL_SLKLOGSOURCERESOURCE=>TT_LOGSOURCERESOURCELIST TT_LOGSOURCERESOURCELIST¶
The list of sources for which log sources are displayed.
iv_maxresults TYPE /AWS1/SLKMAXRESULTS /AWS1/SLKMAXRESULTS¶
The maximum number of accounts for which the log sources are displayed.
iv_nexttoken TYPE /AWS1/SLKNEXTTOKEN /AWS1/SLKNEXTTOKEN¶
If nextToken is returned, there are more results available. You can repeat the call using the returned token to retrieve the next page.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_slklistlogsourcesrsp /AWS1/CL_SLKLISTLOGSOURCESRSP¶
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->listlogsources(
it_accounts = VALUE /aws1/cl_slkaccountlist_w=>tt_accountlist(
( new /aws1/cl_slkaccountlist_w( |string| ) )
)
it_regions = VALUE /aws1/cl_slkregionlist_w=>tt_regionlist(
( new /aws1/cl_slkregionlist_w( |string| ) )
)
it_sources = VALUE /aws1/cl_slklogsourceresource=>tt_logsourceresourcelist(
(
new /aws1/cl_slklogsourceresource(
io_awslogsource = new /aws1/cl_slkawslogsrcresrc(
iv_sourcename = |string|
iv_sourceversion = |string|
)
io_customlogsource = new /aws1/cl_slkcustomlogsrcresrc(
io_attributes = new /aws1/cl_slkcustomlogsrcattrs(
iv_crawlerarn = |string|
iv_databasearn = |string|
iv_tablearn = |string|
)
io_provider = new /aws1/cl_slkcustomlogsrcpvdr(
iv_location = |string|
iv_rolearn = |string|
)
iv_sourcename = |string|
iv_sourceversion = |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_sources( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_awsaccountid = lo_row_1->get_account( ).
lv_region = lo_row_1->get_region( ).
LOOP AT lo_row_1->get_sources( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lo_awslogsourceresource = lo_row_3->get_awslogsource( ).
IF lo_awslogsourceresource IS NOT INITIAL.
lv_awslogsourcename = lo_awslogsourceresource->get_sourcename( ).
lv_awslogsourceversion = lo_awslogsourceresource->get_sourceversion( ).
ENDIF.
lo_customlogsourceresource = lo_row_3->get_customlogsource( ).
IF lo_customlogsourceresource IS NOT INITIAL.
lv_customlogsourcename = lo_customlogsourceresource->get_sourcename( ).
lv_customlogsourceversion = lo_customlogsourceresource->get_sourceversion( ).
lo_customlogsourceprovider = lo_customlogsourceresource->get_provider( ).
IF lo_customlogsourceprovider IS NOT INITIAL.
lv_rolearn = lo_customlogsourceprovider->get_rolearn( ).
lv_s3uri = lo_customlogsourceprovider->get_location( ).
ENDIF.
lo_customlogsourceattribut = lo_customlogsourceresource->get_attributes( ).
IF lo_customlogsourceattribut IS NOT INITIAL.
lv_amazonresourcename = lo_customlogsourceattribut->get_crawlerarn( ).
lv_amazonresourcename = lo_customlogsourceattribut->get_databasearn( ).
lv_amazonresourcename = lo_customlogsourceattribut->get_tablearn( ).
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.