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 all of the streams in your Amazon Web Services account.
Requires permission to access the ListStreams action.
This operation returns paginated results.
Synopsis
- data ListStreams = ListStreams' {}
- newListStreams :: ListStreams
- listStreams_nextToken :: Lens' ListStreams (Maybe Text)
- listStreams_ascendingOrder :: Lens' ListStreams (Maybe Bool)
- listStreams_maxResults :: Lens' ListStreams (Maybe Natural)
- data ListStreamsResponse = ListStreamsResponse' {
- nextToken :: Maybe Text
- streams :: Maybe [StreamSummary]
- httpStatus :: Int
- newListStreamsResponse :: Int -> ListStreamsResponse
- listStreamsResponse_nextToken :: Lens' ListStreamsResponse (Maybe Text)
- listStreamsResponse_streams :: Lens' ListStreamsResponse (Maybe [StreamSummary])
- listStreamsResponse_httpStatus :: Lens' ListStreamsResponse Int
Creating a Request
data ListStreams Source #
See: newListStreams
smart constructor.
ListStreams' | |
|
Instances
newListStreams :: ListStreams Source #
Create a value of ListStreams
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:ListStreams'
, listStreams_nextToken
- A token used to get the next set of results.
$sel:ascendingOrder:ListStreams'
, listStreams_ascendingOrder
- Set to true to return the list of streams in ascending order.
$sel:maxResults:ListStreams'
, listStreams_maxResults
- The maximum number of results to return at a time.
Request Lenses
listStreams_nextToken :: Lens' ListStreams (Maybe Text) Source #
A token used to get the next set of results.
listStreams_ascendingOrder :: Lens' ListStreams (Maybe Bool) Source #
Set to true to return the list of streams in ascending order.
listStreams_maxResults :: Lens' ListStreams (Maybe Natural) Source #
The maximum number of results to return at a time.
Destructuring the Response
data ListStreamsResponse Source #
See: newListStreamsResponse
smart constructor.
ListStreamsResponse' | |
|
Instances
newListStreamsResponse Source #
Create a value of ListStreamsResponse
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:ListStreams'
, listStreamsResponse_nextToken
- A token used to get the next set of results.
$sel:streams:ListStreamsResponse'
, listStreamsResponse_streams
- A list of streams.
$sel:httpStatus:ListStreamsResponse'
, listStreamsResponse_httpStatus
- The response's http status code.
Response Lenses
listStreamsResponse_nextToken :: Lens' ListStreamsResponse (Maybe Text) Source #
A token used to get the next set of results.
listStreamsResponse_streams :: Lens' ListStreamsResponse (Maybe [StreamSummary]) Source #
A list of streams.
listStreamsResponse_httpStatus :: Lens' ListStreamsResponse Int Source #
The response's http status code.