CloudWatchLogs / Client / delete_index_policy

delete_index_policy

CloudWatchLogs.Client.delete_index_policy(**kwargs)

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 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. 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.

See also: AWS API Documentation

Request Syntax

response = client.delete_index_policy(
    logGroupIdentifier='string'
)
Parameters:

logGroupIdentifier (string) –

[REQUIRED]

The log group to delete the index policy for. You can specify either the name or the ARN of the log group.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions