| 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.QLDB.ListLedgers
Description
Returns an array of ledger summaries that are associated with the current Amazon Web Services account and Region.
This action returns a maximum of 100 items and is paginated so that you
can retrieve all the items by calling ListLedgers multiple times.
Synopsis
- data ListLedgers = ListLedgers' {}
- newListLedgers :: ListLedgers
- listLedgers_maxResults :: Lens' ListLedgers (Maybe Natural)
- listLedgers_nextToken :: Lens' ListLedgers (Maybe Text)
- data ListLedgersResponse = ListLedgersResponse' {
- ledgers :: Maybe [LedgerSummary]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListLedgersResponse :: Int -> ListLedgersResponse
- listLedgersResponse_ledgers :: Lens' ListLedgersResponse (Maybe [LedgerSummary])
- listLedgersResponse_nextToken :: Lens' ListLedgersResponse (Maybe Text)
- listLedgersResponse_httpStatus :: Lens' ListLedgersResponse Int
Creating a Request
data ListLedgers Source #
See: newListLedgers smart constructor.
Constructors
| ListLedgers' | |
Fields
| |
Instances
newListLedgers :: ListLedgers Source #
Create a value of ListLedgers 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:maxResults:ListLedgers', listLedgers_maxResults - The maximum number of results to return in a single ListLedgers
request. (The actual number of results returned might be fewer.)
ListLedgers, listLedgers_nextToken - A pagination token, indicating that you want to retrieve the next page
of results. If you received a value for NextToken in the response from
a previous ListLedgers call, then you should use that value as input
here.
Request Lenses
listLedgers_maxResults :: Lens' ListLedgers (Maybe Natural) Source #
The maximum number of results to return in a single ListLedgers
request. (The actual number of results returned might be fewer.)
listLedgers_nextToken :: Lens' ListLedgers (Maybe Text) Source #
A pagination token, indicating that you want to retrieve the next page
of results. If you received a value for NextToken in the response from
a previous ListLedgers call, then you should use that value as input
here.
Destructuring the Response
data ListLedgersResponse Source #
See: newListLedgersResponse smart constructor.
Constructors
| ListLedgersResponse' | |
Fields
| |
Instances
newListLedgersResponse Source #
Arguments
| :: Int | |
| -> ListLedgersResponse |
Create a value of ListLedgersResponse 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:ledgers:ListLedgersResponse', listLedgersResponse_ledgers - The array of ledger summaries that are associated with the current
Amazon Web Services account and Region.
ListLedgers, listLedgersResponse_nextToken - A pagination token, indicating whether there are more results available:
- If
NextTokenis empty, then the last page of results has been processed and there are no more results to be retrieved. - If
NextTokenis not empty, then there are more results available. To retrieve the next page of results, use the value ofNextTokenin a subsequentListLedgerscall.
$sel:httpStatus:ListLedgersResponse', listLedgersResponse_httpStatus - The response's http status code.
Response Lenses
listLedgersResponse_ledgers :: Lens' ListLedgersResponse (Maybe [LedgerSummary]) Source #
The array of ledger summaries that are associated with the current Amazon Web Services account and Region.
listLedgersResponse_nextToken :: Lens' ListLedgersResponse (Maybe Text) Source #
A pagination token, indicating whether there are more results available:
- If
NextTokenis empty, then the last page of results has been processed and there are no more results to be retrieved. - If
NextTokenis not empty, then there are more results available. To retrieve the next page of results, use the value ofNextTokenin a subsequentListLedgerscall.
listLedgersResponse_httpStatus :: Lens' ListLedgersResponse Int Source #
The response's http status code.