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 |
Lists your archives. You can either list all the archives or you can provide a prefix to match to the archive names. Filter parameters are exclusive.
Synopsis
- data ListArchives = ListArchives' {
- eventSourceArn :: Maybe Text
- state :: Maybe ArchiveState
- nextToken :: Maybe Text
- namePrefix :: Maybe Text
- limit :: Maybe Natural
- newListArchives :: ListArchives
- listArchives_eventSourceArn :: Lens' ListArchives (Maybe Text)
- listArchives_state :: Lens' ListArchives (Maybe ArchiveState)
- listArchives_nextToken :: Lens' ListArchives (Maybe Text)
- listArchives_namePrefix :: Lens' ListArchives (Maybe Text)
- listArchives_limit :: Lens' ListArchives (Maybe Natural)
- data ListArchivesResponse = ListArchivesResponse' {}
- newListArchivesResponse :: Int -> ListArchivesResponse
- listArchivesResponse_archives :: Lens' ListArchivesResponse (Maybe [Archive])
- listArchivesResponse_nextToken :: Lens' ListArchivesResponse (Maybe Text)
- listArchivesResponse_httpStatus :: Lens' ListArchivesResponse Int
Creating a Request
data ListArchives Source #
See: newListArchives
smart constructor.
ListArchives' | |
|
Instances
newListArchives :: ListArchives Source #
Create a value of ListArchives
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:eventSourceArn:ListArchives'
, listArchives_eventSourceArn
- The ARN of the event source associated with the archive.
$sel:state:ListArchives'
, listArchives_state
- The state of the archive.
$sel:nextToken:ListArchives'
, listArchives_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:namePrefix:ListArchives'
, listArchives_namePrefix
- A name prefix to filter the archives returned. Only archives with name
that match the prefix are returned.
$sel:limit:ListArchives'
, listArchives_limit
- The maximum number of results to return.
Request Lenses
listArchives_eventSourceArn :: Lens' ListArchives (Maybe Text) Source #
The ARN of the event source associated with the archive.
listArchives_state :: Lens' ListArchives (Maybe ArchiveState) Source #
The state of the archive.
listArchives_nextToken :: Lens' ListArchives (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listArchives_namePrefix :: Lens' ListArchives (Maybe Text) Source #
A name prefix to filter the archives returned. Only archives with name that match the prefix are returned.
listArchives_limit :: Lens' ListArchives (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data ListArchivesResponse Source #
See: newListArchivesResponse
smart constructor.
Instances
newListArchivesResponse Source #
Create a value of ListArchivesResponse
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:archives:ListArchivesResponse'
, listArchivesResponse_archives
- An array of Archive
objects that include details about an archive.
$sel:nextToken:ListArchives'
, listArchivesResponse_nextToken
- The token returned by a previous call to retrieve the next set of
results.
$sel:httpStatus:ListArchivesResponse'
, listArchivesResponse_httpStatus
- The response's http status code.
Response Lenses
listArchivesResponse_archives :: Lens' ListArchivesResponse (Maybe [Archive]) Source #
An array of Archive
objects that include details about an archive.
listArchivesResponse_nextToken :: Lens' ListArchivesResponse (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listArchivesResponse_httpStatus :: Lens' ListArchivesResponse Int Source #
The response's http status code.