Copyright | (c) 2013-2021 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 |
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.
Synopsis
- data PutRetentionPolicy = PutRetentionPolicy' {}
- newPutRetentionPolicy :: Text -> Int -> PutRetentionPolicy
- putRetentionPolicy_logGroupName :: Lens' PutRetentionPolicy Text
- putRetentionPolicy_retentionInDays :: Lens' PutRetentionPolicy Int
- data PutRetentionPolicyResponse = PutRetentionPolicyResponse' {
- newPutRetentionPolicyResponse :: PutRetentionPolicyResponse
Creating a Request
data PutRetentionPolicy Source #
See: newPutRetentionPolicy
smart constructor.
PutRetentionPolicy' | |
|
Instances
newPutRetentionPolicy Source #
:: Text | |
-> Int | |
-> PutRetentionPolicy |
Create a value of PutRetentionPolicy
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:logGroupName:PutRetentionPolicy'
, putRetentionPolicy_logGroupName
- The name of the log group.
$sel:retentionInDays:PutRetentionPolicy'
, putRetentionPolicy_retentionInDays
- Undocumented member.
Request Lenses
putRetentionPolicy_logGroupName :: Lens' PutRetentionPolicy Text Source #
The name of the log group.
putRetentionPolicy_retentionInDays :: Lens' PutRetentionPolicy Int Source #
Undocumented member.
Destructuring the Response
data PutRetentionPolicyResponse Source #
See: newPutRetentionPolicyResponse
smart constructor.
Instances
newPutRetentionPolicyResponse :: PutRetentionPolicyResponse Source #
Create a value of PutRetentionPolicyResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.