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 |
Returns an array of ledger summaries that are associated with the current 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_nextToken :: Lens' ListLedgers (Maybe Text)
- listLedgers_maxResults :: Lens' ListLedgers (Maybe Natural)
- 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.
ListLedgers' | |
|
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:nextToken: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.
$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.)
Request Lenses
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.
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.)
Destructuring the Response
data ListLedgersResponse Source #
See: newListLedgersResponse
smart constructor.
ListLedgersResponse' | |
|
Instances
newListLedgersResponse Source #
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
account and Region.
$sel:nextToken:ListLedgers'
, listLedgersResponse_nextToken
- A pagination token, indicating whether there are more results available:
- If
NextToken
is empty, then the last page of results has been processed and there are no more results to be retrieved. - If
NextToken
is not empty, then there are more results available. To retrieve the next page of results, use the value ofNextToken
in a subsequentListLedgers
call.
$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 account and Region.
listLedgersResponse_nextToken :: Lens' ListLedgersResponse (Maybe Text) Source #
A pagination token, indicating whether there are more results available:
- If
NextToken
is empty, then the last page of results has been processed and there are no more results to be retrieved. - If
NextToken
is not empty, then there are more results available. To retrieve the next page of results, use the value ofNextToken
in a subsequentListLedgers
call.
listLedgersResponse_httpStatus :: Lens' ListLedgersResponse Int Source #
The response's http status code.