| Copyright | (c) 2013-2018 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CloudWatchLogs.PutRetentionPolicy
Description
Sets the retention of the specified log group. A retention policy allows you to configure the number of days for which to retain log events in the specified log group.
Creating a Request
Arguments
| :: Text | |
| -> Int | |
| -> PutRetentionPolicy |
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:
prpLogGroupName- The name of the log group.prpRetentionInDays- Undocumented member.
data PutRetentionPolicy Source #
See: putRetentionPolicy smart constructor.
Instances
Request Lenses
prpLogGroupName :: Lens' PutRetentionPolicy Text Source #
The name of the log group.
prpRetentionInDays :: Lens' PutRetentionPolicy Int Source #
Undocumented member.
Destructuring the Response
putRetentionPolicyResponse :: PutRetentionPolicyResponse Source #
Creates a value of PutRetentionPolicyResponse with the minimum fields required to make a request.
data PutRetentionPolicyResponse Source #
See: putRetentionPolicyResponse smart constructor.