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 |
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_eventPattern :: Lens' CreateArchive (Maybe Text)
- createArchive_retentionDays :: Lens' CreateArchive (Maybe Natural)
- createArchive_description :: Lens' CreateArchive (Maybe Text)
- createArchive_archiveName :: Lens' CreateArchive Text
- createArchive_eventSourceArn :: Lens' CreateArchive Text
- data CreateArchiveResponse = CreateArchiveResponse' {
- creationTime :: Maybe POSIX
- state :: Maybe ArchiveState
- archiveArn :: Maybe Text
- stateReason :: Maybe Text
- httpStatus :: Int
- newCreateArchiveResponse :: Int -> CreateArchiveResponse
- createArchiveResponse_creationTime :: Lens' CreateArchiveResponse (Maybe UTCTime)
- createArchiveResponse_state :: Lens' CreateArchiveResponse (Maybe ArchiveState)
- createArchiveResponse_archiveArn :: Lens' CreateArchiveResponse (Maybe Text)
- createArchiveResponse_stateReason :: Lens' CreateArchiveResponse (Maybe Text)
- createArchiveResponse_httpStatus :: Lens' CreateArchiveResponse Int
Creating a Request
data CreateArchive Source #
See: newCreateArchive
smart constructor.
CreateArchive' | |
|
Instances
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:
$sel:eventPattern:CreateArchive'
, createArchive_eventPattern
- An event pattern to use to filter events sent to the archive.
$sel:retentionDays:CreateArchive'
, createArchive_retentionDays
- The number of days to retain events for. Default value is 0. If set to
0, events are retained indefinitely
$sel:description:CreateArchive'
, createArchive_description
- A description for the archive.
$sel:archiveName:CreateArchive'
, createArchive_archiveName
- The name for the archive to create.
$sel:eventSourceArn:CreateArchive'
, createArchive_eventSourceArn
- The ARN of the event bus that sends events to the archive.
Request Lenses
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_description :: Lens' CreateArchive (Maybe Text) Source #
A description for the archive.
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.
CreateArchiveResponse' | |
|
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:creationTime:CreateArchiveResponse'
, createArchiveResponse_creationTime
- The time at which the archive was created.
$sel:state:CreateArchiveResponse'
, createArchiveResponse_state
- The state of the archive that was created.
$sel:archiveArn:CreateArchiveResponse'
, createArchiveResponse_archiveArn
- The ARN of the archive that was created.
$sel:stateReason: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_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_archiveArn :: Lens' CreateArchiveResponse (Maybe Text) Source #
The ARN 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.