| 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.CreateArchive
Description
Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an archive.
Synopsis
- data CreateArchive = CreateArchive' {}
- newCreateArchive :: Text -> Text -> CreateArchive
- createArchive_description :: Lens' CreateArchive (Maybe Text)
- createArchive_eventPattern :: Lens' CreateArchive (Maybe Text)
- createArchive_retentionDays :: Lens' CreateArchive (Maybe Natural)
- createArchive_archiveName :: Lens' CreateArchive Text
- createArchive_eventSourceArn :: Lens' CreateArchive Text
- data CreateArchiveResponse = CreateArchiveResponse' {
- archiveArn :: Maybe Text
- creationTime :: Maybe POSIX
- state :: Maybe ArchiveState
- stateReason :: Maybe Text
- httpStatus :: Int
- newCreateArchiveResponse :: Int -> CreateArchiveResponse
- createArchiveResponse_archiveArn :: Lens' CreateArchiveResponse (Maybe Text)
- createArchiveResponse_creationTime :: Lens' CreateArchiveResponse (Maybe UTCTime)
- createArchiveResponse_state :: Lens' CreateArchiveResponse (Maybe ArchiveState)
- createArchiveResponse_stateReason :: Lens' CreateArchiveResponse (Maybe Text)
- createArchiveResponse_httpStatus :: Lens' CreateArchiveResponse Int
Creating a Request
data CreateArchive Source #
See: newCreateArchive smart constructor.
Constructors
| CreateArchive' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> Text | |
| -> CreateArchive |
Create a value of CreateArchive 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:
CreateArchive, createArchive_description - A description for the archive.
CreateArchive, createArchive_eventPattern - An event pattern to use to filter events sent to the archive.
CreateArchive, createArchive_retentionDays - The number of days to retain events for. Default value is 0. If set to
0, events are retained indefinitely
CreateArchive, createArchive_archiveName - The name for the archive to create.
CreateArchive, createArchive_eventSourceArn - The ARN of the event bus that sends events to the archive.
Request Lenses
createArchive_description :: Lens' CreateArchive (Maybe Text) Source #
A description for the archive.
createArchive_eventPattern :: Lens' CreateArchive (Maybe Text) Source #
An event pattern to use to filter events sent to the archive.
createArchive_retentionDays :: Lens' CreateArchive (Maybe Natural) Source #
The number of days to retain events for. Default value is 0. If set to 0, events are retained indefinitely
createArchive_archiveName :: Lens' CreateArchive Text Source #
The name for the archive to create.
createArchive_eventSourceArn :: Lens' CreateArchive Text Source #
The ARN of the event bus that sends events to the archive.
Destructuring the Response
data CreateArchiveResponse Source #
See: newCreateArchiveResponse smart constructor.
Constructors
| CreateArchiveResponse' | |
Fields
| |
Instances
newCreateArchiveResponse Source #
Create a value of CreateArchiveResponse 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:CreateArchiveResponse', createArchiveResponse_archiveArn - The ARN of the archive that was created.
CreateArchiveResponse, createArchiveResponse_creationTime - The time at which the archive was created.
CreateArchiveResponse, createArchiveResponse_state - The state of the archive that was created.
CreateArchiveResponse, createArchiveResponse_stateReason - The reason that the archive is in the state.
$sel:httpStatus:CreateArchiveResponse', createArchiveResponse_httpStatus - The response's http status code.
Response Lenses
createArchiveResponse_archiveArn :: Lens' CreateArchiveResponse (Maybe Text) Source #
The ARN of the archive that was created.
createArchiveResponse_creationTime :: Lens' CreateArchiveResponse (Maybe UTCTime) Source #
The time at which the archive was created.
createArchiveResponse_state :: Lens' CreateArchiveResponse (Maybe ArchiveState) Source #
The state of the archive that was created.
createArchiveResponse_stateReason :: Lens' CreateArchiveResponse (Maybe Text) Source #
The reason that the archive is in the state.
createArchiveResponse_httpStatus :: Lens' CreateArchiveResponse Int Source #
The response's http status code.