| 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.ListArchives
Description
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
- limit :: Maybe Natural
- namePrefix :: Maybe Text
- nextToken :: Maybe Text
- state :: Maybe ArchiveState
- newListArchives :: ListArchives
- listArchives_eventSourceArn :: Lens' ListArchives (Maybe Text)
- listArchives_limit :: Lens' ListArchives (Maybe Natural)
- listArchives_namePrefix :: Lens' ListArchives (Maybe Text)
- listArchives_nextToken :: Lens' ListArchives (Maybe Text)
- listArchives_state :: Lens' ListArchives (Maybe ArchiveState)
- 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.
Constructors
| ListArchives' | |
Fields
| |
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:
ListArchives, listArchives_eventSourceArn - The ARN of the event source associated with the archive.
$sel:limit:ListArchives', listArchives_limit - The maximum number of results to return.
$sel:namePrefix:ListArchives', listArchives_namePrefix - A name prefix to filter the archives returned. Only archives with name
that match the prefix are returned.
ListArchives, listArchives_nextToken - The token returned by a previous call to retrieve the next set of
results.
ListArchives, listArchives_state - The state of the archive.
Request Lenses
listArchives_eventSourceArn :: Lens' ListArchives (Maybe Text) Source #
The ARN of the event source associated with the archive.
listArchives_limit :: Lens' ListArchives (Maybe Natural) Source #
The maximum number of results to return.
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_nextToken :: Lens' ListArchives (Maybe Text) Source #
The token returned by a previous call to retrieve the next set of results.
listArchives_state :: Lens' ListArchives (Maybe ArchiveState) Source #
The state of the archive.
Destructuring the Response
data ListArchivesResponse Source #
See: newListArchivesResponse smart constructor.
Constructors
| ListArchivesResponse' | |
Instances
newListArchivesResponse Source #
Arguments
| :: Int | |
| -> ListArchivesResponse |
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.
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.