/AWS1/IF_FRM=>LISTSTACKS()¶
About ListStacks¶
Returns the summary information for stacks whose status matches the specified
StackStatusFilter. Summary information for stacks that have been deleted is
kept for 90 days after the stack is deleted. If no StackStatusFilter is
specified, summary information for all stacks is returned (including existing stacks and
stacks that have been deleted).
Method Signature¶
METHODS /AWS1/IF_FRM~LISTSTACKS
IMPORTING
!IV_NEXTTOKEN TYPE /AWS1/FRMNEXTTOKEN OPTIONAL
!IT_STACKSTATUSFILTER TYPE /AWS1/CL_FRMSTACKSTATFILTER_W=>TT_STACKSTATUSFILTER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_frmliststacksoutput
RAISING
/AWS1/CX_FRMCLIENTEXC
/AWS1/CX_FRMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Optional arguments:¶
iv_nexttoken TYPE /AWS1/FRMNEXTTOKEN /AWS1/FRMNEXTTOKEN¶
The token for the next set of items to return. (You received this token from a previous call.)
it_stackstatusfilter TYPE /AWS1/CL_FRMSTACKSTATFILTER_W=>TT_STACKSTATUSFILTER TT_STACKSTATUSFILTER¶
Stack status to use as a filter. Specify one or more stack status codes to list only stacks with the specified status codes. For a complete list of stack status codes, see the
StackStatusparameter of the Stack data type.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_frmliststacksoutput /AWS1/CL_FRMLISTSTACKSOUTPUT¶
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->liststacks(
it_stackstatusfilter = VALUE /aws1/cl_frmstackstatfilter_w=>tt_stackstatusfilter(
( new /aws1/cl_frmstackstatfilter_w( |string| ) )
)
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_stacksummaries( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_stackid = lo_row_1->get_stackid( ).
lv_stackname = lo_row_1->get_stackname( ).
lv_templatedescription = lo_row_1->get_templatedescription( ).
lv_creationtime = lo_row_1->get_creationtime( ).
lv_lastupdatedtime = lo_row_1->get_lastupdatedtime( ).
lv_deletiontime = lo_row_1->get_deletiontime( ).
lv_stackstatus = lo_row_1->get_stackstatus( ).
lv_stackstatusreason = lo_row_1->get_stackstatusreason( ).
lv_stackid = lo_row_1->get_parentid( ).
lv_stackid = lo_row_1->get_rootid( ).
lo_stackdriftinformationsu = lo_row_1->get_driftinformation( ).
IF lo_stackdriftinformationsu IS NOT INITIAL.
lv_stackdriftstatus = lo_stackdriftinformationsu->get_stackdriftstatus( ).
lv_timestamp = lo_stackdriftinformationsu->get_lastchecktimestamp( ).
ENDIF.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.