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 all Amazon QLDB journal stream descriptors for a
given ledger. The output of each stream descriptor includes the same
details that are returned by DescribeJournalKinesisStream
.
This action does not return any expired journal streams. For more information, see Expiration for terminal streams in the Amazon QLDB Developer Guide.
This action returns a maximum of MaxResults
items. It is paginated so
that you can retrieve all the items by calling
ListJournalKinesisStreamsForLedger
multiple times.
Synopsis
- data ListJournalKinesisStreamsForLedger = ListJournalKinesisStreamsForLedger' {
- nextToken :: Maybe Text
- maxResults :: Maybe Natural
- ledgerName :: Text
- newListJournalKinesisStreamsForLedger :: Text -> ListJournalKinesisStreamsForLedger
- listJournalKinesisStreamsForLedger_nextToken :: Lens' ListJournalKinesisStreamsForLedger (Maybe Text)
- listJournalKinesisStreamsForLedger_maxResults :: Lens' ListJournalKinesisStreamsForLedger (Maybe Natural)
- listJournalKinesisStreamsForLedger_ledgerName :: Lens' ListJournalKinesisStreamsForLedger Text
- data ListJournalKinesisStreamsForLedgerResponse = ListJournalKinesisStreamsForLedgerResponse' {}
- newListJournalKinesisStreamsForLedgerResponse :: Int -> ListJournalKinesisStreamsForLedgerResponse
- listJournalKinesisStreamsForLedgerResponse_nextToken :: Lens' ListJournalKinesisStreamsForLedgerResponse (Maybe Text)
- listJournalKinesisStreamsForLedgerResponse_streams :: Lens' ListJournalKinesisStreamsForLedgerResponse (Maybe [JournalKinesisStreamDescription])
- listJournalKinesisStreamsForLedgerResponse_httpStatus :: Lens' ListJournalKinesisStreamsForLedgerResponse Int
Creating a Request
data ListJournalKinesisStreamsForLedger Source #
See: newListJournalKinesisStreamsForLedger
smart constructor.
ListJournalKinesisStreamsForLedger' | |
|
Instances
newListJournalKinesisStreamsForLedger Source #
Create a value of ListJournalKinesisStreamsForLedger
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:ListJournalKinesisStreamsForLedger'
, listJournalKinesisStreamsForLedger_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 ListJournalKinesisStreamsForLedger
call, you should use
that value as input here.
$sel:maxResults:ListJournalKinesisStreamsForLedger'
, listJournalKinesisStreamsForLedger_maxResults
- The maximum number of results to return in a single
ListJournalKinesisStreamsForLedger
request. (The actual number of
results returned might be fewer.)
$sel:ledgerName:ListJournalKinesisStreamsForLedger'
, listJournalKinesisStreamsForLedger_ledgerName
- The name of the ledger.
Request Lenses
listJournalKinesisStreamsForLedger_nextToken :: Lens' ListJournalKinesisStreamsForLedger (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 ListJournalKinesisStreamsForLedger
call, you should use
that value as input here.
listJournalKinesisStreamsForLedger_maxResults :: Lens' ListJournalKinesisStreamsForLedger (Maybe Natural) Source #
The maximum number of results to return in a single
ListJournalKinesisStreamsForLedger
request. (The actual number of
results returned might be fewer.)
listJournalKinesisStreamsForLedger_ledgerName :: Lens' ListJournalKinesisStreamsForLedger Text Source #
The name of the ledger.
Destructuring the Response
data ListJournalKinesisStreamsForLedgerResponse Source #
See: newListJournalKinesisStreamsForLedgerResponse
smart constructor.
ListJournalKinesisStreamsForLedgerResponse' | |
|
Instances
newListJournalKinesisStreamsForLedgerResponse Source #
Create a value of ListJournalKinesisStreamsForLedgerResponse
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:ListJournalKinesisStreamsForLedger'
, listJournalKinesisStreamsForLedgerResponse_nextToken
- - If NextToken
is empty, the last page of results has been processed
and there are no more results to be retrieved.
- If
NextToken
is not empty, more results are available. To retrieve the next page of results, use the value ofNextToken
in a subsequentListJournalKinesisStreamsForLedger
call.
$sel:streams:ListJournalKinesisStreamsForLedgerResponse'
, listJournalKinesisStreamsForLedgerResponse_streams
- The array of QLDB journal stream descriptors that are associated with
the given ledger.
$sel:httpStatus:ListJournalKinesisStreamsForLedgerResponse'
, listJournalKinesisStreamsForLedgerResponse_httpStatus
- The response's http status code.
Response Lenses
listJournalKinesisStreamsForLedgerResponse_nextToken :: Lens' ListJournalKinesisStreamsForLedgerResponse (Maybe Text) Source #
- If
NextToken
is empty, the last page of results has been processed and there are no more results to be retrieved. - If
NextToken
is not empty, more results are available. To retrieve the next page of results, use the value ofNextToken
in a subsequentListJournalKinesisStreamsForLedger
call.
listJournalKinesisStreamsForLedgerResponse_streams :: Lens' ListJournalKinesisStreamsForLedgerResponse (Maybe [JournalKinesisStreamDescription]) Source #
The array of QLDB journal stream descriptors that are associated with the given ledger.
listJournalKinesisStreamsForLedgerResponse_httpStatus :: Lens' ListJournalKinesisStreamsForLedgerResponse Int Source #
The response's http status code.