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 |
Retrieves details about an archive.
Synopsis
- data DescribeArchive = DescribeArchive' {
- archiveName :: Text
- newDescribeArchive :: Text -> DescribeArchive
- describeArchive_archiveName :: Lens' DescribeArchive Text
- data DescribeArchiveResponse = DescribeArchiveResponse' {
- creationTime :: Maybe POSIX
- sizeBytes :: Maybe Integer
- eventSourceArn :: Maybe Text
- eventPattern :: Maybe Text
- state :: Maybe ArchiveState
- eventCount :: Maybe Integer
- archiveName :: Maybe Text
- retentionDays :: Maybe Natural
- archiveArn :: Maybe Text
- stateReason :: Maybe Text
- description :: Maybe Text
- httpStatus :: Int
- newDescribeArchiveResponse :: Int -> DescribeArchiveResponse
- describeArchiveResponse_creationTime :: Lens' DescribeArchiveResponse (Maybe UTCTime)
- describeArchiveResponse_sizeBytes :: Lens' DescribeArchiveResponse (Maybe Integer)
- describeArchiveResponse_eventSourceArn :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_eventPattern :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_state :: Lens' DescribeArchiveResponse (Maybe ArchiveState)
- describeArchiveResponse_eventCount :: Lens' DescribeArchiveResponse (Maybe Integer)
- describeArchiveResponse_archiveName :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_retentionDays :: Lens' DescribeArchiveResponse (Maybe Natural)
- describeArchiveResponse_archiveArn :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_stateReason :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_description :: Lens' DescribeArchiveResponse (Maybe Text)
- describeArchiveResponse_httpStatus :: Lens' DescribeArchiveResponse Int
Creating a Request
data DescribeArchive Source #
See: newDescribeArchive
smart constructor.
DescribeArchive' | |
|
Instances
Create a value of DescribeArchive
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:archiveName:DescribeArchive'
, describeArchive_archiveName
- The name of the archive to retrieve.
Request Lenses
describeArchive_archiveName :: Lens' DescribeArchive Text Source #
The name of the archive to retrieve.
Destructuring the Response
data DescribeArchiveResponse Source #
See: newDescribeArchiveResponse
smart constructor.
DescribeArchiveResponse' | |
|
Instances
newDescribeArchiveResponse Source #
Create a value of DescribeArchiveResponse
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:DescribeArchiveResponse'
, describeArchiveResponse_creationTime
- The time at which the archive was created.
$sel:sizeBytes:DescribeArchiveResponse'
, describeArchiveResponse_sizeBytes
- The size of the archive in bytes.
$sel:eventSourceArn:DescribeArchiveResponse'
, describeArchiveResponse_eventSourceArn
- The ARN of the event source associated with the archive.
$sel:eventPattern:DescribeArchiveResponse'
, describeArchiveResponse_eventPattern
- The event pattern used to filter events sent to the archive.
$sel:state:DescribeArchiveResponse'
, describeArchiveResponse_state
- The state of the archive.
$sel:eventCount:DescribeArchiveResponse'
, describeArchiveResponse_eventCount
- The number of events in the archive.
$sel:archiveName:DescribeArchive'
, describeArchiveResponse_archiveName
- The name of the archive.
$sel:retentionDays:DescribeArchiveResponse'
, describeArchiveResponse_retentionDays
- The number of days to retain events for in the archive.
$sel:archiveArn:DescribeArchiveResponse'
, describeArchiveResponse_archiveArn
- The ARN of the archive.
$sel:stateReason:DescribeArchiveResponse'
, describeArchiveResponse_stateReason
- The reason that the archive is in the state.
$sel:description:DescribeArchiveResponse'
, describeArchiveResponse_description
- The description of the archive.
$sel:httpStatus:DescribeArchiveResponse'
, describeArchiveResponse_httpStatus
- The response's http status code.
Response Lenses
describeArchiveResponse_creationTime :: Lens' DescribeArchiveResponse (Maybe UTCTime) Source #
The time at which the archive was created.
describeArchiveResponse_sizeBytes :: Lens' DescribeArchiveResponse (Maybe Integer) Source #
The size of the archive in bytes.
describeArchiveResponse_eventSourceArn :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The ARN of the event source associated with the archive.
describeArchiveResponse_eventPattern :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The event pattern used to filter events sent to the archive.
describeArchiveResponse_state :: Lens' DescribeArchiveResponse (Maybe ArchiveState) Source #
The state of the archive.
describeArchiveResponse_eventCount :: Lens' DescribeArchiveResponse (Maybe Integer) Source #
The number of events in the archive.
describeArchiveResponse_archiveName :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The name of the archive.
describeArchiveResponse_retentionDays :: Lens' DescribeArchiveResponse (Maybe Natural) Source #
The number of days to retain events for in the archive.
describeArchiveResponse_archiveArn :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The ARN of the archive.
describeArchiveResponse_stateReason :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The reason that the archive is in the state.
describeArchiveResponse_description :: Lens' DescribeArchiveResponse (Maybe Text) Source #
The description of the archive.
describeArchiveResponse_httpStatus :: Lens' DescribeArchiveResponse Int Source #
The response's http status code.