| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CloudWatchEvents.UpdateArchive
Description
Updates the specified archive.
Synopsis
- data UpdateArchive = UpdateArchive' {}
- newUpdateArchive :: Text -> UpdateArchive
- updateArchive_description :: Lens' UpdateArchive (Maybe Text)
- updateArchive_eventPattern :: Lens' UpdateArchive (Maybe Text)
- updateArchive_retentionDays :: Lens' UpdateArchive (Maybe Natural)
- updateArchive_archiveName :: Lens' UpdateArchive Text
- data UpdateArchiveResponse = UpdateArchiveResponse' {
- archiveArn :: Maybe Text
- creationTime :: Maybe POSIX
- state :: Maybe ArchiveState
- stateReason :: Maybe Text
- httpStatus :: Int
- newUpdateArchiveResponse :: Int -> UpdateArchiveResponse
- updateArchiveResponse_archiveArn :: Lens' UpdateArchiveResponse (Maybe Text)
- updateArchiveResponse_creationTime :: Lens' UpdateArchiveResponse (Maybe UTCTime)
- updateArchiveResponse_state :: Lens' UpdateArchiveResponse (Maybe ArchiveState)
- updateArchiveResponse_stateReason :: Lens' UpdateArchiveResponse (Maybe Text)
- updateArchiveResponse_httpStatus :: Lens' UpdateArchiveResponse Int
Creating a Request
data UpdateArchive Source #
See: newUpdateArchive smart constructor.
Constructors
| UpdateArchive' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> UpdateArchive |
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:
UpdateArchive, updateArchive_description - The description for the archive.
UpdateArchive, updateArchive_eventPattern - The event pattern to use to filter events sent to the archive.
UpdateArchive, updateArchive_retentionDays - The number of days to retain events in the archive.
UpdateArchive, updateArchive_archiveName - The name of the archive to update.
Request Lenses
updateArchive_description :: Lens' UpdateArchive (Maybe Text) Source #
The description for the archive.
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_archiveName :: Lens' UpdateArchive Text Source #
The name of the archive to update.
Destructuring the Response
data UpdateArchiveResponse Source #
See: newUpdateArchiveResponse smart constructor.
Constructors
| UpdateArchiveResponse' | |
Fields
| |
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:archiveArn:UpdateArchiveResponse', updateArchiveResponse_archiveArn - The ARN of the archive.
UpdateArchiveResponse, updateArchiveResponse_creationTime - The time at which the archive was updated.
UpdateArchiveResponse, updateArchiveResponse_state - The state of the archive.
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_archiveArn :: Lens' UpdateArchiveResponse (Maybe Text) Source #
The ARN of the archive.
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_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.