/AWS1/IF_BDK=>LISTAUTOMATEDREASONINGPOL()¶
About ListAutomatedReasoningPolicies¶
Lists all Automated Reasoning policies in your account, with optional filtering by policy ARN. This helps you manage and discover existing policies.
Method Signature¶
METHODS /AWS1/IF_BDK~LISTAUTOMATEDREASONINGPOL
IMPORTING
!IV_POLICYARN TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/BDKPAGINATIONTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/BDKMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_bdklstautomatedrsni01
RAISING
/AWS1/CX_BDKACCESSDENIEDEX
/AWS1/CX_BDKINTERNALSERVEREX
/AWS1/CX_BDKRESOURCENOTFOUNDEX
/AWS1/CX_BDKTHROTTLINGEX
/AWS1/CX_BDKVALIDATIONEX
/AWS1/CX_BDKCLIENTEXC
/AWS1/CX_BDKSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_policyarn TYPE /AWS1/BDKAUTOMATEDRSNINGPLYARN /AWS1/BDKAUTOMATEDRSNINGPLYARN¶
Optional filter to list only the policy versions with the specified Amazon Resource Name (ARN). If not provided, the DRAFT versions for all policies are listed.
iv_nexttoken TYPE /AWS1/BDKPAGINATIONTOKEN /AWS1/BDKPAGINATIONTOKEN¶
The pagination token from a previous request to retrieve the next page of results.
iv_maxresults TYPE /AWS1/BDKMAXRESULTS /AWS1/BDKMAXRESULTS¶
The maximum number of policies to return in a single call.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_bdklstautomatedrsni01 /AWS1/CL_BDKLSTAUTOMATEDRSNI01¶
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->listautomatedreasoningpol(
iv_maxresults = 123
iv_nexttoken = |string|
iv_policyarn = |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_automatedrsningplysums( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_automatedreasoningpolic = lo_row_1->get_policyarn( ).
lv_automatedreasoningpolic_1 = lo_row_1->get_name( ).
lv_automatedreasoningpolic_2 = lo_row_1->get_description( ).
lv_automatedreasoningpolic_3 = lo_row_1->get_version( ).
lv_automatedreasoningpolic_4 = lo_row_1->get_policyid( ).
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.