/AWS1/IF_UNT=>LISTEVENTRULES()¶
About ListEventRules¶
Returns a list of EventRules according to specified filters, in reverse chronological order (newest first).
Method Signature¶
METHODS /AWS1/IF_UNT~LISTEVENTRULES
  IMPORTING
    !IV_NOTIFICATIONCONFARN TYPE /AWS1/UNTNOTIFICATIONCONFARN OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/UNTINTEGER OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/UNTNEXTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_untlisteventrulesrsp
  RAISING
    /AWS1/CX_UNTACCESSDENIEDEX
    /AWS1/CX_UNTINTERNALSERVEREX
    /AWS1/CX_UNTRESOURCENOTFOUNDEX
    /AWS1/CX_UNTTHROTTLINGEX
    /AWS1/CX_UNTVALIDATIONEX
    /AWS1/CX_UNTCLIENTEXC
    /AWS1/CX_UNTSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_notificationconfarn TYPE /AWS1/UNTNOTIFICATIONCONFARN /AWS1/UNTNOTIFICATIONCONFARN¶
The Amazon Resource Name (ARN) of the
NotificationConfiguration.
Optional arguments:¶
iv_maxresults TYPE /AWS1/UNTINTEGER /AWS1/UNTINTEGER¶
The maximum number of results to be returned in this call. The default value is 20.
iv_nexttoken TYPE /AWS1/UNTNEXTTOKEN /AWS1/UNTNEXTTOKEN¶
The start token for paginated calls. Retrieved from the response of a previous
ListEventRulescall. Next token uses Base64 encoding.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_untlisteventrulesrsp /AWS1/CL_UNTLISTEVENTRULESRSP¶
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->listeventrules(
  iv_maxresults = 123
  iv_nexttoken = |string|
  iv_notificationconfarn = |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_eventrules( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_eventrulearn = lo_row_1->get_arn( ).
      lv_notificationconfigurati = lo_row_1->get_notificationconfarn( ).
      lv_creationtime = lo_row_1->get_creationtime( ).
      lv_source = lo_row_1->get_source( ).
      lv_eventtype = lo_row_1->get_eventtype( ).
      lv_eventruleeventpattern = lo_row_1->get_eventpattern( ).
      LOOP AT lo_row_1->get_regions( ) into lo_row_2.
        lo_row_3 = lo_row_2.
        IF lo_row_3 IS NOT INITIAL.
          lv_region = lo_row_3->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_managedrules( ) into lo_row_4.
        lo_row_5 = lo_row_4.
        IF lo_row_5 IS NOT INITIAL.
          lv_managedrulearn = lo_row_5->get_value( ).
        ENDIF.
      ENDLOOP.
      LOOP AT lo_row_1->get_statussummarybyregion( ) into ls_row_6.
        lv_key = ls_row_6-key.
        lo_value = ls_row_6-value.
        IF lo_value IS NOT INITIAL.
          lv_eventrulestatus = lo_value->get_status( ).
          lv_eventrulestatusreason = lo_value->get_reason( ).
        ENDIF.
      ENDLOOP.
    ENDIF.
  ENDLOOP.
ENDIF.