amazonka-cloudwatch-logs- Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




Sets the retention of the specified log group. A retention policy allows you to configure the number of days you want to retain log events in the specified log group.

See: AWS API Reference for PutRetentionPolicy.


Creating a Request

putRetentionPolicy Source

Creates a value of PutRetentionPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

prpLogGroupName :: Lens' PutRetentionPolicy Text Source

The name of the log group to associate the retention policy with.

Destructuring the Response

putRetentionPolicyResponse :: PutRetentionPolicyResponse Source

Creates a value of PutRetentionPolicyResponse with the minimum fields required to make a request.