delete_retention_policy

CloudWatchLogs.Client.delete_retention_policy(**kwargs)

Deletes the specified retention policy.

Log events do not expire if they belong to log groups without a retention policy.

See also: AWS API Documentation

Request Syntax

response = client.delete_retention_policy(
    logGroupName='string'
)
Parameters
logGroupName (string) --

[REQUIRED]

The name of the log group.

Returns
None

Exceptions

  • CloudWatchLogs.Client.exceptions.InvalidParameterException
  • CloudWatchLogs.Client.exceptions.ResourceNotFoundException
  • CloudWatchLogs.Client.exceptions.OperationAbortedException
  • CloudWatchLogs.Client.exceptions.ServiceUnavailableException