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.

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.

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