/AWS1/IF_CWS=>BATCHDELETEINSTRCONFS()¶
About BatchDeleteInstrumentationConfigurations¶
Deletes multiple instrumentation configurations in a single request. Supports two mutually exclusive selection methods: - By scope: Delete all configurations matching a Service + Environment + InstrumentationType - By ARN list: Delete specific configurations by providing a list of resource ARNs
Method Signature¶
METHODS /AWS1/IF_CWS~BATCHDELETEINSTRCONFS
IMPORTING
!IO_DELETIONTARGET TYPE REF TO /AWS1/CL_CWSBATCHDELTDLTNTGT OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwsbtcdelinstcfgsrsp
RAISING
/AWS1/CX_CWSTHROTTLINGEX
/AWS1/CX_CWSVALIDATIONEX
/AWS1/CX_CWSCLIENTEXC
/AWS1/CX_CWSSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
io_deletiontarget TYPE REF TO /AWS1/CL_CWSBATCHDELTDLTNTGT /AWS1/CL_CWSBATCHDELTDLTNTGT¶
The deletion target - either bulk by scope or targeted by ARN list.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_cwsbtcdelinstcfgsrsp /AWS1/CL_CWSBTCDELINSTCFGSRSP¶
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->batchdeleteinstrconfs(
io_deletiontarget = new /aws1/cl_cwsbatchdeltdltntgt(
io_resourcearns = new /aws1/cl_cwsbatchdelbyresarns(
it_resourcearns = VALUE /aws1/cl_cwsbtcdelresarnlist_w=>tt_batchdeleteresourcearnlist(
( new /aws1/cl_cwsbtcdelresarnlist_w( |string| ) )
)
iv_instrumentationtype = |string|
)
io_scope = new /aws1/cl_cwsbatchdeletescope(
iv_environment = |string|
iv_instrumentationtype = |string|
iv_service = |string|
)
)
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_integer = lo_result->get_deletedcount( ).
LOOP AT lo_result->get_successfuldeletions( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_string = lo_row_1->get_resourcearn( ).
lv_string = lo_row_1->get_signaltype( ).
lv_string = lo_row_1->get_locationhash( ).
ENDIF.
ENDLOOP.
LOOP AT lo_result->get_errors( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_string = lo_row_3->get_resourcearn( ).
lv_batchdeleteerrorcode = lo_row_3->get_code( ).
lv_string = lo_row_3->get_message( ).
ENDIF.
ENDLOOP.
ENDIF.