/AWS1/CL_CWL=>DELETEINDEXPOLICY()
¶
About DeleteIndexPolicy¶
Deletes a log-group level field index policy that was applied to a single log group. The indexing of the log events that happened before you delete the policy will still be used for as many as 30 days to improve CloudWatch Logs Insights queries.
You can't use this operation to delete an account-level index policy. Instead, use DeletAccountPolicy.
If you delete a log-group level field index policy and there is an account-level field index policy, in a few minutes the log group begins using that account-wide policy to index new incoming log events.
Method Signature¶
IMPORTING¶
Required arguments:¶
iv_loggroupidentifier
TYPE /AWS1/CWLLOGGROUPIDENTIFIER
/AWS1/CWLLOGGROUPIDENTIFIER
¶
The log group to delete the index policy for. You can specify either the name or the ARN of the log group.
RETURNING¶
oo_output
TYPE REF TO /aws1/cl_cwldeleteindexplyrsp
/AWS1/CL_CWLDELETEINDEXPLYRSP
¶
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->/aws1/if_cwl~deleteindexpolicy( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.