Skip to content

/AWS1/IF_LMW=>LISTWEBFUNCTIONREVISIONS()

About ListWebFunctionRevisions

Lists revisions for a web function. We recommend using pagination to ensure that the operation returns quickly and successfully.

This API is experimental and for internal AWS use only. It is not yet available to external customers.

Method Signature

METHODS /AWS1/IF_LMW~LISTWEBFUNCTIONREVISIONS
  IMPORTING
    !IV_FUNCTIONNAME TYPE /AWS1/LMWFUNCTIONNAME OPTIONAL
    !IT_FILTERS TYPE /AWS1/CL_LMWFILTER=>TT_FILTERLIST OPTIONAL
    !IV_MAXRESULTS TYPE /AWS1/LMWMAXRESULTS OPTIONAL
    !IV_NEXTTOKEN TYPE /AWS1/LMWNEXTTOKEN OPTIONAL
  RETURNING
    VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmwlistwebfuncrevsrsp
  RAISING
    /AWS1/CX_LMWACCESSDENIEDEX
    /AWS1/CX_LMWINTERNALSERVEREX
    /AWS1/CX_LMWRESOURCENOTFOUNDEX
    /AWS1/CX_LMWTHROTTLINGEX
    /AWS1/CX_LMWVLDTNEXCEPTION
    /AWS1/CX_LMWCLIENTEXC
    /AWS1/CX_LMWSERVEREXC
    /AWS1/CX_RT_TECHNICAL_GENERIC
    /AWS1/CX_RT_SERVICE_GENERIC.

IMPORTING

Required arguments:

iv_functionname TYPE /AWS1/LMWFUNCTIONNAME /AWS1/LMWFUNCTIONNAME

The name of the web function. You can specify the function name or the function ARN. The length constraint applies only to the full ARN. If you specify only the function name, it is limited to 64 characters in length.

Optional arguments:

it_filters TYPE /AWS1/CL_LMWFILTER=>TT_FILTERLIST TT_FILTERLIST

A list of filters to apply to the results. The only supported filter name is state.

iv_maxresults TYPE /AWS1/LMWMAXRESULTS /AWS1/LMWMAXRESULTS

The maximum number of results to return in a single call. Minimum value of 1, maximum value of 50. Default is 50.

iv_nexttoken TYPE /AWS1/LMWNEXTTOKEN /AWS1/LMWNEXTTOKEN

The pagination token that's returned by a previous request to retrieve the next page of results.

RETURNING

oo_output TYPE REF TO /aws1/cl_lmwlistwebfuncrevsrsp /AWS1/CL_LMWLISTWEBFUNCREVSRSP

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->listwebfunctionrevisions(
  it_filters = VALUE /aws1/cl_lmwfilter=>tt_filterlist(
    (
      new /aws1/cl_lmwfilter(
        it_values = VALUE /aws1/cl_lmwfiltervaluelist_w=>tt_filtervaluelist(
          ( new /aws1/cl_lmwfiltervaluelist_w( |string| ) )
        )
        iv_name = |string|
      )
    )
  )
  iv_functionname = |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.
  LOOP AT lo_result->get_revisions( ) into lo_row.
    lo_row_1 = lo_row.
    IF lo_row_1 IS NOT INITIAL.
      lv_revisionarn = lo_row_1->get_revisionarn( ).
      lv_revisionid = lo_row_1->get_revisionid( ).
      lv_description = lo_row_1->get_description( ).
      lv_revisionstate = lo_row_1->get_state( ).
      lv_string = lo_row_1->get_statereason( ).
      lv_datetime = lo_row_1->get_createdat( ).
    ENDIF.
  ENDLOOP.
  lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.