/AWS1/IF_LMW=>GETWEBFUNCTIONENDPOINT()¶
About GetWebFunctionEndpoint¶
Retrieves details about a web function endpoint, including its current state, configuration, and domain name.
This API is experimental and for internal AWS use only. It is not yet available to external customers.
Method Signature¶
METHODS /AWS1/IF_LMW~GETWEBFUNCTIONENDPOINT
IMPORTING
!IV_FUNCTIONNAME TYPE /AWS1/LMWFUNCTIONNAME OPTIONAL
!IV_ENDPOINTNAME TYPE /AWS1/LMWENDPOINTNAME OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmwgetwebfuncendptrsp
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_endpointname TYPE /AWS1/LMWENDPOINTNAME /AWS1/LMWENDPOINTNAME¶
The name of the endpoint to retrieve. You can specify the endpoint name or the endpoint ARN. The length constraint applies only to the full ARN. If you specify only the endpoint name, it is limited to 64 characters in length.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmwgetwebfuncendptrsp /AWS1/CL_LMWGETWEBFUNCENDPTRSP¶
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->getwebfunctionendpoint(
iv_endpointname = |string|
iv_functionname = |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_endpointarn = lo_result->get_endpointarn( ).
lv_endpointname = lo_result->get_endpointname( ).
lv_description = lo_result->get_description( ).
lv_endpointtype = lo_result->get_endpointtype( ).
lv_domainname = lo_result->get_domainname( ).
lv_authtype = lo_result->get_authtype( ).
lv_autodeploymentmode = lo_result->get_autodeploymentmode( ).
LOOP AT lo_result->get_revisionweights( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_revisionid = lo_row_1->get_revisionid( ).
lv_integer = lo_row_1->get_weight( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_regions( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_region = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lo_scalingconfig = lo_result->get_scalingconfig( ).
IF lo_scalingconfig IS NOT INITIAL.
lv_integer = lo_scalingconfig->get_maxenvironments( ).
ENDIF.
lo_throttleconfig = lo_result->get_throttleconfig( ).
IF lo_throttleconfig IS NOT INITIAL.
lv_integer = lo_throttleconfig->get_ratelimit( ).
ENDIF.
lv_endpointstate = lo_result->get_state( ).
lv_string = lo_result->get_statereason( ).
lv_endpointupdatestatus = lo_result->get_updatestatus( ).
lv_string = lo_result->get_updatestatusreason( ).
LOOP AT lo_result->get_regionalendpoints( ) into ls_row_4.
lv_key = ls_row_4-key.
lo_value = ls_row_4-value.
IF lo_value IS NOT INITIAL.
lv_domainname = lo_value->get_domainname( ).
lv_authtype = lo_value->get_authtype( ).
LOOP AT lo_value->get_revisionweights( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_revisionid = lo_row_1->get_revisionid( ).
lv_integer = lo_row_1->get_weight( ).
ENDIF.
ENDLOOP.
lo_scalingconfig = lo_value->get_scalingconfig( ).
IF lo_scalingconfig IS NOT INITIAL.
lv_integer = lo_scalingconfig->get_maxenvironments( ).
ENDIF.
lo_throttleconfig = lo_value->get_throttleconfig( ).
IF lo_throttleconfig IS NOT INITIAL.
lv_integer = lo_throttleconfig->get_ratelimit( ).
ENDIF.
lv_endpointstate = lo_value->get_state( ).
lv_string = lo_value->get_statereason( ).
lv_endpointupdatestatus = lo_value->get_updatestatus( ).
lv_string = lo_value->get_updatestatusreason( ).
ENDIF.
ENDLOOP.
lv_datetime = lo_result->get_createdat( ).
lv_datetime = lo_result->get_updatedat( ).
ENDIF.