/AWS1/IF_DRS=>LISTLAUNCHACTIONS()¶
About ListLaunchActions¶
Lists resource launch actions.
Method Signature¶
METHODS /AWS1/IF_DRS~LISTLAUNCHACTIONS
IMPORTING
!IV_RESOURCEID TYPE /AWS1/DRSLAUNCHACTIONRESRCID OPTIONAL
!IO_FILTERS TYPE REF TO /AWS1/CL_DRSLAUNCHACTSREQFILTS OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/DRSMAXRESULTSTYPE OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/DRSPAGINATIONTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_drslistlaunchactsrsp
RAISING
/AWS1/CX_DRSINTERNALSERVEREX
/AWS1/CX_DRSRESOURCENOTFOUNDEX
/AWS1/CX_DRSSERVICEQUOTAEXCDEX
/AWS1/CX_DRSTHROTTLINGEX
/AWS1/CX_DRSUNINITIALIZEDACEX
/AWS1/CX_DRSCLIENTEXC
/AWS1/CX_DRSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_resourceid TYPE /AWS1/DRSLAUNCHACTIONRESRCID /AWS1/DRSLAUNCHACTIONRESRCID¶
resourceId
Optional arguments:¶
io_filters TYPE REF TO /AWS1/CL_DRSLAUNCHACTSREQFILTS /AWS1/CL_DRSLAUNCHACTSREQFILTS¶
Filters to apply when listing resource launch actions.
iv_maxresults TYPE /AWS1/DRSMAXRESULTSTYPE /AWS1/DRSMAXRESULTSTYPE¶
Maximum amount of items to return when listing resource launch actions.
iv_nexttoken TYPE /AWS1/DRSPAGINATIONTOKEN /AWS1/DRSPAGINATIONTOKEN¶
Next token to use when listing resource launch actions.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_drslistlaunchactsrsp /AWS1/CL_DRSLISTLAUNCHACTSRSP¶
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->listlaunchactions(
io_filters = new /aws1/cl_drslaunchactsreqfilts(
it_actionids = VALUE /aws1/cl_drslaunchactionids_w=>tt_launchactionids(
( new /aws1/cl_drslaunchactionids_w( |string| ) )
)
)
iv_maxresults = 123
iv_nexttoken = |string|
iv_resourceid = |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_items( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_launchactionid = lo_row_1->get_actionid( ).
lv_ssmdocumentname = lo_row_1->get_actioncode( ).
lv_launchactiontype = lo_row_1->get_type( ).
lv_launchactionname = lo_row_1->get_name( ).
lv_boolean = lo_row_1->get_active( ).
lv_launchactionorder = lo_row_1->get_order( ).
lv_launchactionversion = lo_row_1->get_actionversion( ).
lv_boolean = lo_row_1->get_optional( ).
LOOP AT lo_row_1->get_parameters( ) into ls_row_2.
lv_key = ls_row_2-key.
lo_value = ls_row_2-value.
IF lo_value IS NOT INITIAL.
lv_launchactionparameterva = lo_value->get_value( ).
lv_launchactionparameterty = lo_value->get_type( ).
ENDIF.
ENDLOOP.
lv_launchactiondescription = lo_row_1->get_description( ).
lv_launchactioncategory = lo_row_1->get_category( ).
ENDIF.
ENDLOOP.
lv_paginationtoken = lo_result->get_nexttoken( ).
ENDIF.