amazonka-cloudwatch-logs-1.0.1: Amazon CloudWatch Logs SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatchLogs.PutRetentionPolicy

Contents

Description

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.

Synopsis

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.