/AWS1/IF_CWL=>LISTSCHEDULEDQUERIES()¶
About ListScheduledQueries¶
Lists all scheduled queries in your account and region. You can filter results by state to show only enabled or disabled queries.
Method Signature¶
METHODS /AWS1/IF_CWL~LISTSCHEDULEDQUERIES
IMPORTING
!IV_MAXRESULTS TYPE /AWS1/CWLLISTSCHDQUERIESMAXRSS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/CWLNEXTTOKEN OPTIONAL
!IV_STATE TYPE /AWS1/CWLSCHEDULEDQUERYSTATE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwllstschddqueriesrsp
RAISING
/AWS1/CX_CWLACCESSDENIEDEX
/AWS1/CX_CWLINTERNALSERVEREX
/AWS1/CX_CWLTHROTTLINGEX
/AWS1/CX_CWLVALIDATIONEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_maxresults TYPE /AWS1/CWLLISTSCHDQUERIESMAXRSS /AWS1/CWLLISTSCHDQUERIESMAXRSS¶
The maximum number of scheduled queries to return. Valid range is 1 to 1000.
iv_nexttoken TYPE /AWS1/CWLNEXTTOKEN /AWS1/CWLNEXTTOKEN¶
The token for the next set of items to return. The token expires after 24 hours.
iv_state TYPE /AWS1/CWLSCHEDULEDQUERYSTATE /AWS1/CWLSCHEDULEDQUERYSTATE¶
Filter scheduled queries by state. Valid values are
ENABLEDandDISABLED. If not specified, all scheduled queries are returned.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwllstschddqueriesrsp /AWS1/CL_CWLLSTSCHDDQUERIESRSP¶
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->listscheduledqueries(
iv_maxresults = 123
iv_nexttoken = |string|
iv_state = |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_scheduledqueries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_arn = lo_row_1->get_scheduledqueryarn( ).
lv_scheduledqueryname = lo_row_1->get_name( ).
lv_scheduledquerystate = lo_row_1->get_state( ).
lv_timestamp = lo_row_1->get_lasttriggeredtime( ).
lv_executionstatus = lo_row_1->get_lastexecutionstatus( ).
lv_scheduleexpression = lo_row_1->get_scheduleexpression( ).
lv_scheduletimezone = lo_row_1->get_timezone( ).
lo_destinationconfiguratio = lo_row_1->get_destinationconfiguration( ).
IF lo_destinationconfiguratio IS NOT INITIAL.
lo_s3configuration = lo_destinationconfiguratio->get_s3configuration( ).
IF lo_s3configuration IS NOT INITIAL.
lv_s3uri = lo_s3configuration->get_destinationidentifier( ).
lv_rolearn = lo_s3configuration->get_rolearn( ).
lv_accountid = lo_s3configuration->get_owneraccountid( ).
lv_kmskeyid = lo_s3configuration->get_kmskeyid( ).
ENDIF.
ENDIF.
lv_timestamp = lo_row_1->get_creationtime( ).
lv_timestamp = lo_row_1->get_lastupdatedtime( ).
ENDIF.
ENDLOOP.
ENDIF.