/AWS1/IF_DBR=>LISTRULESETS()¶
About ListRulesets¶
List all rulesets available in the current account or rulesets associated with a specific resource (dataset).
Method Signature¶
METHODS /AWS1/IF_DBR~LISTRULESETS
IMPORTING
!IV_TARGETARN TYPE /AWS1/DBRARN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DBRMAXRESULTS100 OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DBRNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_dbrlistrulesetsrsp
RAISING
/AWS1/CX_DBRRESOURCENOTFOUNDEX
/AWS1/CX_DBRVALIDATIONEX
/AWS1/CX_DBRCLIENTEXC
/AWS1/CX_DBRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_targetarn TYPE /AWS1/DBRARN /AWS1/DBRARN¶
The Amazon Resource Name (ARN) of a resource (dataset). Using this parameter indicates to return only those rulesets that are associated with the specified resource.
iv_maxresults TYPE /AWS1/DBRMAXRESULTS100 /AWS1/DBRMAXRESULTS100¶
The maximum number of results to return in this request.
iv_nexttoken TYPE /AWS1/DBRNEXTTOKEN /AWS1/DBRNEXTTOKEN¶
A token generated by DataBrew that specifies where to continue pagination if a previous request was truncated. To get the next set of pages, pass in the NextToken value from the response object of the previous page call.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_dbrlistrulesetsrsp /AWS1/CL_DBRLISTRULESETSRSP¶
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->listrulesets(
iv_maxresults = 123
iv_nexttoken = |string|
iv_targetarn = |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_rulesets( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_accountid = lo_row_1->get_accountid( ).
lv_createdby = lo_row_1->get_createdby( ).
lv_date = lo_row_1->get_createdate( ).
lv_rulesetdescription = lo_row_1->get_description( ).
lv_lastmodifiedby = lo_row_1->get_lastmodifiedby( ).
lv_date = lo_row_1->get_lastmodifieddate( ).
lv_rulesetname = lo_row_1->get_name( ).
lv_arn = lo_row_1->get_resourcearn( ).
lv_rulecount = lo_row_1->get_rulecount( ).
LOOP AT lo_row_1->get_tags( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_tagvalue = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lv_arn = lo_row_1->get_targetarn( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.