/AWS1/IF_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.
If the deleted policy included facet configurations, those facets will no longer be available for interactive exploration in the CloudWatch Logs Insights console for this log group. However, facet data is retained for up to 30 days.
You can't use this operation to delete an account-level index policy. Instead, use DeleteAccountPolicy.
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. This operation only affects log group-level policies, including any facet configurations, and preserves any data source-based account policies that may apply to the log group.
Method Signature¶
METHODS /AWS1/IF_CWL~DELETEINDEXPOLICY
IMPORTING
!IV_LOGGROUPIDENTIFIER TYPE /AWS1/CWLLOGGROUPIDENTIFIER OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_cwldeleteindexplyrsp
RAISING
/AWS1/CX_CWLINVALIDPARAMETEREX
/AWS1/CX_CWLLIMITEXCEEDEDEX
/AWS1/CX_CWLOPERATIONABORTEDEX
/AWS1/CX_CWLRESOURCENOTFOUNDEX
/AWS1/CX_CWLSERVICEUNAVAILEX
/AWS1/CX_CWLCLIENTEXC
/AWS1/CX_CWLSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
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¶
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->deleteindexpolicy( |string| ).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
ENDIF.