/AWS1/IF_LMC=>UPDATENETWORKCONNECTOR()¶
About UpdateNetworkConnector¶
Updates the VPC configuration or operator role of an existing network connector. You can modify the subnet IDs, security group IDs, network protocol, or operator role. The connector must be in ACTIVE state to accept updates.
This operation is asynchronous. The connector remains in ACTIVE state during the update — existing workloads that reference this connector are not disrupted. Use GetNetworkConnector to monitor the LastUpdateStatus field, which transitions through InProgress to Successful or Failed. If the update fails, the LastUpdateStatusReasonCode field provides a specific error code for troubleshooting. This operation is idempotent when you provide a ClientToken.
Method Signature¶
METHODS /AWS1/IF_LMC~UPDATENETWORKCONNECTOR
IMPORTING
!IV_IDENTIFIER TYPE /AWS1/LMCNETWORKCONNECTORID00 OPTIONAL
!IO_CONFIGURATION TYPE REF TO /AWS1/CL_LMCNETWORKCNCTRCONF OPTIONAL
!IV_OPERATORROLE TYPE /AWS1/LMCNETWORKCNCTRROLEARN OPTIONAL
!IV_CLIENTTOKEN TYPE /AWS1/LMCCLIENTTOKENSTRING OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmcupdatenetcnctrrsp
RAISING
/AWS1/CX_LMCINVPARAMVALUEEX
/AWS1/CX_LMCRESOURCECONFLICTEX
/AWS1/CX_LMCRESOURCENOTFOUNDEX
/AWS1/CX_LMCSERVICEEXCEPTION
/AWS1/CX_LMCTOOMANYREQUESTSEX
/AWS1/CX_LMCCLIENTEXC
/AWS1/CX_LMCSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_identifier TYPE /AWS1/LMCNETWORKCONNECTORID00 /AWS1/LMCNETWORKCONNECTORID00¶
A flexible identifier that accepts a network connector ID, name, or ARN
Optional arguments:¶
io_configuration TYPE REF TO /AWS1/CL_LMCNETWORKCNCTRCONF /AWS1/CL_LMCNETWORKCNCTRCONF¶
The updated network configuration for the connector. Provide the full
VpcEgressConfigurationincluding all subnet IDs and security group IDs — this replaces the existing configuration.
iv_operatorrole TYPE /AWS1/LMCNETWORKCNCTRROLEARN /AWS1/LMCNETWORKCNCTRROLEARN¶
The updated ARN of the IAM role that Lambda assumes to manage ENIs. Use this to change the operator role without recreating the connector.
iv_clienttoken TYPE /AWS1/LMCCLIENTTOKENSTRING /AWS1/LMCCLIENTTOKENSTRING¶
A unique, case-sensitive identifier to ensure idempotency of the update request.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmcupdatenetcnctrrsp /AWS1/CL_LMCUPDATENETCNCTRRSP¶
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->updatenetworkconnector(
io_configuration = new /aws1/cl_lmcnetworkcnctrconf(
io_vpcegressconfiguration = new /aws1/cl_lmcnetcnctrvpcegrconf(
it_assoccomputeresourcetypes = VALUE /aws1/cl_lmcasccomprestyslst_w=>tt_assoccomputerestypeslist(
( new /aws1/cl_lmcasccomprestyslst_w( |string| ) )
)
it_securitygroupids = VALUE /aws1/cl_lmcnetcnrecuritygri00=>tt_networkcnctecuritygroupids(
( new /aws1/cl_lmcnetcnrecuritygri00( |string| ) )
)
it_subnetids = VALUE /aws1/cl_lmcnetcnctubnetids_w=>tt_networkconnectorsubnetids(
( new /aws1/cl_lmcnetcnctubnetids_w( |string| ) )
)
iv_networkprotocol = |string|
)
)
iv_clienttoken = |string|
iv_identifier = |string|
iv_operatorrole = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_networkconnectorarn = lo_result->get_arn( ).
lv_networkconnectorname = lo_result->get_name( ).
lv_networkconnectorid = lo_result->get_id( ).
lv_networkconnectorrolearn = lo_result->get_operatorrole( ).
lo_networkconnectorconfigu = lo_result->get_configuration( ).
IF lo_networkconnectorconfigu IS NOT INITIAL.
lo_networkconnectorvpcegre = lo_networkconnectorconfigu->get_vpcegressconfiguration( ).
IF lo_networkconnectorvpcegre IS NOT INITIAL.
LOOP AT lo_networkconnectorvpcegre->get_subnetids( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_networkconnectorsubneti = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_networkconnectorvpcegre->get_securitygroupids( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_networkconnectorsecurit = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
lv_networkprotocol = lo_networkconnectorvpcegre->get_networkprotocol( ).
LOOP AT lo_networkconnectorvpcegre->get_assoccomputerestypes( ) into lo_row_4.
lo_row_5 = lo_row_4.
IF lo_row_5 IS NOT INITIAL.
lv_computeresourcetype = lo_row_5->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
lv_networkconnectorstate = lo_result->get_state( ).
lv_networkconnectorlastupd = lo_result->get_lastupdatestatus( ).
lv_networkconnectorlastupd_1 = lo_result->get_lastupdatestatusreason( ).
lv_coretimestamp = lo_result->get_lastmodified( ).
ENDIF.