/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 compute resources are using it, as they will lose VPC egress connectivity immediately.
Deleting with an unqualified identifier removes the connector and all of its versions. To remove a single historical version, supply its version-qualified ARN; the connector and its remaining versions are unaffected. You can't delete the latest version on its own — delete the connector to remove it.
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¶
The identifier of the network connector to delete. Provide an unqualified ARN (or an ID or name) to delete the entire connector and all of its versions, or a version-qualified ARN — one that includes the immutable version suffix — to delete a specific historical version. You can't delete the latest version with a version-qualified identifier; delete the connector instead.
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( ).
lv_networkconnectorarn = lo_result->get_versionarn( ).
lv_networkconnectorversion = lo_result->get_version( ).
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.