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 |
Puts retention settings for the specified Amazon Chime Enterprise account. We recommend using AWS CloudTrail to monitor usage of this API for your account. For more information, see Logging Amazon Chime API Calls with AWS CloudTrail in the Amazon Chime Administration Guide.
To turn off existing retention settings, remove the number of days from the corresponding RetentionDays field in the RetentionSettings object. For more information about retention settings, see Managing Chat Retention Policies in the Amazon Chime Administration Guide.
Synopsis
- data PutRetentionSettings = PutRetentionSettings' {}
- newPutRetentionSettings :: Text -> RetentionSettings -> PutRetentionSettings
- putRetentionSettings_accountId :: Lens' PutRetentionSettings Text
- putRetentionSettings_retentionSettings :: Lens' PutRetentionSettings RetentionSettings
- data PutRetentionSettingsResponse = PutRetentionSettingsResponse' {}
- newPutRetentionSettingsResponse :: Int -> PutRetentionSettingsResponse
- putRetentionSettingsResponse_retentionSettings :: Lens' PutRetentionSettingsResponse (Maybe RetentionSettings)
- putRetentionSettingsResponse_initiateDeletionTimestamp :: Lens' PutRetentionSettingsResponse (Maybe UTCTime)
- putRetentionSettingsResponse_httpStatus :: Lens' PutRetentionSettingsResponse Int
Creating a Request
data PutRetentionSettings Source #
See: newPutRetentionSettings
smart constructor.
PutRetentionSettings' | |
|
Instances
newPutRetentionSettings Source #
Create a value of PutRetentionSettings
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:accountId:PutRetentionSettings'
, putRetentionSettings_accountId
- The Amazon Chime account ID.
$sel:retentionSettings:PutRetentionSettings'
, putRetentionSettings_retentionSettings
- The retention settings.
Request Lenses
putRetentionSettings_accountId :: Lens' PutRetentionSettings Text Source #
The Amazon Chime account ID.
putRetentionSettings_retentionSettings :: Lens' PutRetentionSettings RetentionSettings Source #
The retention settings.
Destructuring the Response
data PutRetentionSettingsResponse Source #
See: newPutRetentionSettingsResponse
smart constructor.
PutRetentionSettingsResponse' | |
|
Instances
newPutRetentionSettingsResponse Source #
Create a value of PutRetentionSettingsResponse
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:retentionSettings:PutRetentionSettings'
, putRetentionSettingsResponse_retentionSettings
- The retention settings.
$sel:initiateDeletionTimestamp:PutRetentionSettingsResponse'
, putRetentionSettingsResponse_initiateDeletionTimestamp
- The timestamp representing the time at which the specified items are
permanently deleted, in ISO 8601 format.
$sel:httpStatus:PutRetentionSettingsResponse'
, putRetentionSettingsResponse_httpStatus
- The response's http status code.
Response Lenses
putRetentionSettingsResponse_retentionSettings :: Lens' PutRetentionSettingsResponse (Maybe RetentionSettings) Source #
The retention settings.
putRetentionSettingsResponse_initiateDeletionTimestamp :: Lens' PutRetentionSettingsResponse (Maybe UTCTime) Source #
The timestamp representing the time at which the specified items are permanently deleted, in ISO 8601 format.
putRetentionSettingsResponse_httpStatus :: Lens' PutRetentionSettingsResponse Int Source #
The response's http status code.