/AWS1/IF_LMC=>DELETENETWORKCONNECTOR()¶
About DeleteNetworkConnector¶
Initiates deletion of a network connector. The connector transitions to DELETING state while elastic network interfaces are cleaned up asynchronously. After deletion completes, subsequent calls to GetNetworkConnector return ResourceNotFoundException.
This operation is idempotent — calling delete on a connector that is already deleting or has been deleted succeeds without error. You can delete connectors in ACTIVE or FAILED states. Before deleting a connector, ensure that no Lambda MicroVMs are using it, as they will lose VPC egress connectivity immediately.
Method Signature¶
METHODS /AWS1/IF_LMC~DELETENETWORKCONNECTOR
IMPORTING
!IV_IDENTIFIER TYPE /AWS1/LMCNETWORKCONNECTORID00 OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_lmcdeletenetcnctrrsp
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
RETURNING¶
oo_output TYPE REF TO /aws1/cl_lmcdeletenetcnctrrsp /AWS1/CL_LMCDELETENETCNCTRRSP¶
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->deletenetworkconnector( |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( ).
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_networkconnectorrolearn = lo_result->get_operatorrole( ).
lv_networkconnectorstate = lo_result->get_state( ).
ENDIF.