/AWS1/IF_MHR=>UPDATEROUTE()¶
About UpdateRoute¶
Updates an Amazon Web Services Migration Hub Refactor Spaces route.
Method Signature¶
METHODS /AWS1/IF_MHR~UPDATEROUTE
IMPORTING
!IV_ENVIRONMENTIDENTIFIER TYPE /AWS1/MHRENVIRONMENTID OPTIONAL
!IV_APPLICATIONIDENTIFIER TYPE /AWS1/MHRAPPLICATIONID OPTIONAL
!IV_ROUTEIDENTIFIER TYPE /AWS1/MHRROUTEID OPTIONAL
!IV_ACTIVATIONSTATE TYPE /AWS1/MHRROUTEACTIVATIONSTATE OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_mhrupdateroutersp
RAISING
/AWS1/CX_MHRACCESSDENIEDEX
/AWS1/CX_MHRINTERNALSERVEREX
/AWS1/CX_MHRRESOURCENOTFOUNDEX
/AWS1/CX_MHRTHROTTLINGEX
/AWS1/CX_MHRVALIDATIONEX
/AWS1/CX_MHRCLIENTEXC
/AWS1/CX_MHRSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_environmentidentifier TYPE /AWS1/MHRENVIRONMENTID /AWS1/MHRENVIRONMENTID¶
The ID of the environment in which the route is being updated.
iv_applicationidentifier TYPE /AWS1/MHRAPPLICATIONID /AWS1/MHRAPPLICATIONID¶
The ID of the application within which the route is being updated.
iv_routeidentifier TYPE /AWS1/MHRROUTEID /AWS1/MHRROUTEID¶
The unique identifier of the route to update.
iv_activationstate TYPE /AWS1/MHRROUTEACTIVATIONSTATE /AWS1/MHRROUTEACTIVATIONSTATE¶
If set to
ACTIVE, traffic is forwarded to this route’s service after the route is updated.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_mhrupdateroutersp /AWS1/CL_MHRUPDATEROUTERSP¶
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->updateroute(
iv_activationstate = |string|
iv_applicationidentifier = |string|
iv_environmentidentifier = |string|
iv_routeidentifier = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_routeid = lo_result->get_routeid( ).
lv_resourcearn = lo_result->get_arn( ).
lv_serviceid = lo_result->get_serviceid( ).
lv_applicationid = lo_result->get_applicationid( ).
lv_routestate = lo_result->get_state( ).
lv_timestamp = lo_result->get_lastupdatedtime( ).
ENDIF.