/AWS1/IF_UNT=>LISTMEMBERACCOUNTS()
¶
About ListMemberAccounts¶
Returns a list of member accounts associated with a notification configuration.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_notificationconfarn
TYPE /AWS1/UNTNOTIFICATIONCONFARN
/AWS1/UNTNOTIFICATIONCONFARN
¶
The Amazon Resource Name (ARN) of the notification configuration used to filter the member accounts.
Optional arguments:¶
iv_maxresults
TYPE /AWS1/UNTINTEGER
/AWS1/UNTINTEGER
¶
The maximum number of results to return in a single call. Valid values are 1-100.
iv_nexttoken
TYPE /AWS1/UNTNEXTTOKEN
/AWS1/UNTNEXTTOKEN
¶
The token for the next page of results. Use the value returned in the previous response.
iv_memberaccount
TYPE /AWS1/UNTACCOUNTID
/AWS1/UNTACCOUNTID
¶
The member account identifier used to filter the results.
iv_status
TYPE /AWS1/UNTMEMBERACCNTFCONFSTAT
/AWS1/UNTMEMBERACCNTFCONFSTAT
¶
The status used to filter the member accounts.
iv_organizationalunitid
TYPE /AWS1/UNTORGANIZATIONALUNITID
/AWS1/UNTORGANIZATIONALUNITID
¶
The organizational unit ID used to filter the member accounts.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_untlistmemberacctsrsp
/AWS1/CL_UNTLISTMEMBERACCTSRSP
¶
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->/aws1/if_unt~listmemberaccounts(
iv_maxresults = 123
iv_memberaccount = |string|
iv_nexttoken = |string|
iv_notificationconfarn = |string|
iv_organizationalunitid = |string|
iv_status = |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_memberaccounts( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_notificationconfigurati = lo_row_1->get_notificationconfarn( ).
lv_accountid = lo_row_1->get_accountid( ).
lv_memberaccountnotificati = lo_row_1->get_status( ).
lv_string = lo_row_1->get_statusreason( ).
lv_organizationalunitid = lo_row_1->get_organizationalunitid( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.