/AWS1/IF_QST=>LISTAPPROVALPOLICIES()¶
About ListApprovalPolicies¶
Lists all approval policies in the specified Quick Sight account. The results are paginated. If the
response includes a NextToken value, pass it in a subsequent call to retrieve the next
set of results.
Method Signature¶
METHODS /AWS1/IF_QST~LISTAPPROVALPOLICIES
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/QSTPAGINATIONTOKEN OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/QSTMAXRESULTS OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_qstlistapprpolrsp
RAISING
/AWS1/CX_QSTACCESSDENIEDEX
/AWS1/CX_QSTINTERNALFAILUREEX
/AWS1/CX_QSTINVPARAMVALUEEX
/AWS1/CX_QSTRESOURCENOTFOUNDEX
/AWS1/CX_QSTTHROTTLINGEX
/AWS1/CX_QSTCLIENTEXC
/AWS1/CX_QSTSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/QSTPAGINATIONTOKEN /AWS1/QSTPAGINATIONTOKEN¶
The token for the next set of results, or null if there are no more results.
iv_maxresults TYPE /AWS1/QSTMAXRESULTS /AWS1/QSTMAXRESULTS¶
The maximum number of results to return in a single call. If you don't specify a value, the service returns a default number of results. Use the
NextTokenvalue in the response to retrieve additional results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_qstlistapprpolrsp /AWS1/CL_QSTLISTAPPRPOLRSP¶
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->listapprovalpolicies(
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_policies( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_policyid = lo_row_1->get_policyid( ).
lv_arn = lo_row_1->get_policyarn( ).
lv_policyname = lo_row_1->get_name( ).
lv_policydescription = lo_row_1->get_description( ).
LOOP AT lo_row_1->get_actions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_governedaction = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_assettypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_assettype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
lo_applicableto = lo_row_1->get_applicableto( ).
IF lo_applicableto IS NOT INITIAL.
lv_applicabletotype = lo_applicableto->get_type( ).
LOOP AT lo_applicableto->get_grouparns( ) into lo_row_6.
lo_row_7 = lo_row_6.
IF lo_row_7 IS NOT INITIAL.
lv_arn = lo_row_7->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
LOOP AT lo_row_1->get_approvalgroups( ) into lo_row_8.
lo_row_9 = lo_row_8.
IF lo_row_9 IS NOT INITIAL.
lv_arn = lo_row_9->get_value( ).
ENDIF.
ENDLOOP.
lv_timestamp = lo_row_1->get_createdat( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.