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 |
Updates the specified archive.
Synopsis
- data UpdateArchive = UpdateArchive' {}
- newUpdateArchive :: Text -> UpdateArchive
- updateArchive_eventPattern :: Lens' UpdateArchive (Maybe Text)
- updateArchive_retentionDays :: Lens' UpdateArchive (Maybe Natural)
- updateArchive_description :: Lens' UpdateArchive (Maybe Text)
- updateArchive_archiveName :: Lens' UpdateArchive Text
- data UpdateArchiveResponse = UpdateArchiveResponse' {
- creationTime :: Maybe POSIX
- state :: Maybe ArchiveState
- archiveArn :: Maybe Text
- stateReason :: Maybe Text
- httpStatus :: Int
- newUpdateArchiveResponse :: Int -> UpdateArchiveResponse
- updateArchiveResponse_creationTime :: Lens' UpdateArchiveResponse (Maybe UTCTime)
- updateArchiveResponse_state :: Lens' UpdateArchiveResponse (Maybe ArchiveState)
- updateArchiveResponse_archiveArn :: Lens' UpdateArchiveResponse (Maybe Text)
- updateArchiveResponse_stateReason :: Lens' UpdateArchiveResponse (Maybe Text)
- updateArchiveResponse_httpStatus :: Lens' UpdateArchiveResponse Int
Creating a Request
data UpdateArchive Source #
See: newUpdateArchive
smart constructor.
UpdateArchive' | |
|
Instances
Create a value of UpdateArchive
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:eventPattern:UpdateArchive'
, updateArchive_eventPattern
- The event pattern to use to filter events sent to the archive.
$sel:retentionDays:UpdateArchive'
, updateArchive_retentionDays
- The number of days to retain events in the archive.
$sel:description:UpdateArchive'
, updateArchive_description
- The description for the archive.
$sel:archiveName:UpdateArchive'
, updateArchive_archiveName
- The name of the archive to update.
Request Lenses
updateArchive_eventPattern :: Lens' UpdateArchive (Maybe Text) Source #
The event pattern to use to filter events sent to the archive.
updateArchive_retentionDays :: Lens' UpdateArchive (Maybe Natural) Source #
The number of days to retain events in the archive.
updateArchive_description :: Lens' UpdateArchive (Maybe Text) Source #
The description for the archive.
updateArchive_archiveName :: Lens' UpdateArchive Text Source #
The name of the archive to update.
Destructuring the Response
data UpdateArchiveResponse Source #
See: newUpdateArchiveResponse
smart constructor.
UpdateArchiveResponse' | |
|
Instances
newUpdateArchiveResponse Source #
Create a value of UpdateArchiveResponse
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:creationTime:UpdateArchiveResponse'
, updateArchiveResponse_creationTime
- The time at which the archive was updated.
$sel:state:UpdateArchiveResponse'
, updateArchiveResponse_state
- The state of the archive.
$sel:archiveArn:UpdateArchiveResponse'
, updateArchiveResponse_archiveArn
- The ARN of the archive.
$sel:stateReason:UpdateArchiveResponse'
, updateArchiveResponse_stateReason
- The reason that the archive is in the current state.
$sel:httpStatus:UpdateArchiveResponse'
, updateArchiveResponse_httpStatus
- The response's http status code.
Response Lenses
updateArchiveResponse_creationTime :: Lens' UpdateArchiveResponse (Maybe UTCTime) Source #
The time at which the archive was updated.
updateArchiveResponse_state :: Lens' UpdateArchiveResponse (Maybe ArchiveState) Source #
The state of the archive.
updateArchiveResponse_archiveArn :: Lens' UpdateArchiveResponse (Maybe Text) Source #
The ARN of the archive.
updateArchiveResponse_stateReason :: Lens' UpdateArchiveResponse (Maybe Text) Source #
The reason that the archive is in the current state.
updateArchiveResponse_httpStatus :: Lens' UpdateArchiveResponse Int Source #
The response's http status code.