/AWS1/CL_FRM=>LISTSTACKRESOURCES()
¶
About ListStackResources¶
Returns descriptions of all resources of the specified stack.
For deleted stacks, ListStackResources returns resource information for up to 90 days after the stack has been deleted.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_stackname
TYPE /AWS1/FRMSTACKNAME
/AWS1/FRMSTACKNAME
¶
The name or the unique stack ID that is associated with the stack, which aren't always interchangeable:
Running stacks: You can specify either the stack's name or its unique stack ID.
Deleted stacks: You must specify the unique stack ID.
Optional arguments:¶
iv_nexttoken
TYPE /AWS1/FRMNEXTTOKEN
/AWS1/FRMNEXTTOKEN
¶
A string that identifies the next page of stack resources that you want to retrieve.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_frmliststackresrcsout
/AWS1/CL_FRMLISTSTACKRESRCSOUT
¶
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_frm~liststackresources(
iv_nexttoken = |string|
iv_stackname = |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_stackresourcesummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_logicalresourceid = lo_row_1->get_logicalresourceid( ).
lv_physicalresourceid = lo_row_1->get_physicalresourceid( ).
lv_resourcetype = lo_row_1->get_resourcetype( ).
lv_timestamp = lo_row_1->get_lastupdatedtimestamp( ).
lv_resourcestatus = lo_row_1->get_resourcestatus( ).
lv_resourcestatusreason = lo_row_1->get_resourcestatusreason( ).
lo_stackresourcedriftinfor = lo_row_1->get_driftinformation( ).
IF lo_stackresourcedriftinfor IS NOT INITIAL.
lv_stackresourcedriftstatu = lo_stackresourcedriftinfor->get_stackresourcedriftstatus( ).
lv_timestamp = lo_stackresourcedriftinfor->get_lastchecktimestamp( ).
ENDIF.
lo_moduleinfo = lo_row_1->get_moduleinfo( ).
IF lo_moduleinfo IS NOT INITIAL.
lv_typehierarchy = lo_moduleinfo->get_typehierarchy( ).
lv_logicalidhierarchy = lo_moduleinfo->get_logicalidhierarchy( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.