/AWS1/IF_LMW=>GETWEBFUNCTIONREVISION()¶
About GetWebFunctionRevision¶
Retrieves details about a web function revision, including its state and configuration.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
Method Signature¶
METHODS /AWS1/IF_LMW~GETWEBFUNCTIONREVISION
IMPORTING
!IV_FUNCTIONNAME TYPE /AWS1/LMWFUNCTIONNAME OPTIONAL
!IV_REVISIONID TYPE /AWS1/LMWREVISIONID OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmwgetwebfuncrevsnrsp
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.
iv_revisionid TYPE /AWS1/LMWREVISIONID /AWS1/LMWREVISIONID¶
The identifier of the revision to retrieve. You can specify the revision identifier or the revision ARN. The length constraint applies only to the full ARN.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmwgetwebfuncrevsnrsp /AWS1/CL_LMWGETWEBFUNCREVSNRSP¶
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->getwebfunctionrevision(
iv_functionname = |string|
iv_revisionid = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_functionarn = lo_result->get_functionarn( ).
lv_revisionarn = lo_result->get_revisionarn( ).
lv_revisionid = lo_result->get_revisionid( ).
lv_description = lo_result->get_description( ).
lv_kmskeyarn = lo_result->get_kmskeyarn( ).
lo_buildconfig = lo_result->get_buildconfig( ).
IF lo_buildconfig IS NOT INITIAL.
lo_codeconfig = lo_buildconfig->get_codeconfig( ).
IF lo_codeconfig IS NOT INITIAL.
lo_s3object = lo_codeconfig->get_s3object( ).
IF lo_s3object IS NOT INITIAL.
lv_string = lo_s3object->get_bucket( ).
lv_string = lo_s3object->get_key( ).
lv_string = lo_s3object->get_versionid( ).
ENDIF.
ENDIF.
lo_runtimeconfig = lo_buildconfig->get_runtimeconfig( ).
IF lo_runtimeconfig IS NOT INITIAL.
lv_string = lo_runtimeconfig->get_runtime( ).
ENDIF.
ENDIF.
lo_serviceconfig = lo_result->get_serviceconfig( ).
IF lo_serviceconfig IS NOT INITIAL.
lv_rolearn = lo_serviceconfig->get_executionrolearn( ).
lv_integer = lo_serviceconfig->get_timeoutseconds( ).
lv_integer = lo_serviceconfig->get_maxconcrperenvironment( ).
LOOP AT lo_serviceconfig->get_environmentvariables( ) into ls_row.
lv_key = ls_row-key.
lo_value = ls_row-value.
IF lo_value IS NOT INITIAL.
lv_string = lo_value->get_value( ).
ENDIF.
ENDLOOP.
lo_telemetryconfig = lo_serviceconfig->get_telemetryconfig( ).
IF lo_telemetryconfig IS NOT INITIAL.
lo_loggingconfig = lo_telemetryconfig->get_loggingconfig( ).
IF lo_loggingconfig IS NOT INITIAL.
lv_string = lo_loggingconfig->get_loggroup( ).
lv_applicationloglevel = lo_loggingconfig->get_applicationloglevel( ).
lv_systemloglevel = lo_loggingconfig->get_systemloglevel( ).
ENDIF.
ENDIF.
ENDIF.
lv_revisionstate = lo_result->get_state( ).
lv_string = lo_result->get_statereason( ).
LOOP AT lo_result->get_errors( ) into lo_row_1.
lo_row_2 = lo_row_1.
IF lo_row_2 IS NOT INITIAL.
lv_string = lo_row_2->get_attribute( ).
lv_string = lo_row_2->get_errorcode( ).
lv_string = lo_row_2->get_errormessage( ).
ENDIF.
ENDLOOP.
lv_datetime = lo_result->get_createdat( ).
ENDIF.