/AWS1/CL_RGR=>LISTGROUPINGSTATUSES()
¶
About ListGroupingStatuses¶
Returns the status of the last grouping or ungrouping action for each resource in the specified application group.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_group
TYPE /AWS1/RGRGROUPSTRINGV2
/AWS1/RGRGROUPSTRINGV2
¶
The application group identifier, expressed as an Amazon resource name (ARN) or the application group name.
Optional arguments:¶
iv_maxresults
TYPE /AWS1/RGRMAXRESULTS
/AWS1/RGRMAXRESULTS
¶
The maximum number of resources and their statuses returned in the response.
it_filters
TYPE /AWS1/CL_RGRLSTGRINGSTATESFILT=>TT_LISTGROUPINGSTATESFILTLIST
TT_LISTGROUPINGSTATESFILTLIST
¶
The filter name and value pair that is used to return more specific results from a list of resources.
iv_nexttoken
TYPE /AWS1/RGRNEXTTOKEN
/AWS1/RGRNEXTTOKEN
¶
The parameter for receiving additional results if you receive a
NextToken
response in a previous request. ANextToken
response indicates that more output is available. Set this parameter to the value provided by a previous call'sNextToken
response to indicate where the output should continue from.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_rgrlstgrpingstatesout
/AWS1/CL_RGRLSTGRPINGSTATESOUT
¶
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_rgr~listgroupingstatuses(
it_filters = VALUE /aws1/cl_rgrlstgringstatesfilt=>tt_listgroupingstatesfiltlist(
(
new /aws1/cl_rgrlstgringstatesfilt(
it_values = VALUE /aws1/cl_rgrlstgringstatesfi00=>tt_listgrpingstatesfiltvalues(
( new /aws1/cl_rgrlstgringstatesfi00( |string| ) )
)
iv_name = |string|
)
)
)
iv_group = |string|
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.
lv_groupstringv2 = lo_result->get_group( ).
LOOP AT lo_result->get_groupingstatuses( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_resourcearn = lo_row_1->get_resourcearn( ).
lv_groupingtype = lo_row_1->get_action( ).
lv_groupingstatus = lo_row_1->get_status( ).
lv_errormessage = lo_row_1->get_errormessage( ).
lv_errorcode = lo_row_1->get_errorcode( ).
lv_timestamp = lo_row_1->get_updatedat( ).
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.