| 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.IoT.ListStreams
Description
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_ascendingOrder :: Lens' ListStreams (Maybe Bool)
- listStreams_maxResults :: Lens' ListStreams (Maybe Natural)
- listStreams_nextToken :: Lens' ListStreams (Maybe Text)
- 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.
Constructors
| ListStreams' | |
Fields
| |
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: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.
ListStreams, listStreams_nextToken - A token used to get the next set of results.
Request Lenses
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.
listStreams_nextToken :: Lens' ListStreams (Maybe Text) Source #
A token used to get the next set of results.
Destructuring the Response
data ListStreamsResponse Source #
See: newListStreamsResponse smart constructor.
Constructors
| ListStreamsResponse' | |
Fields
| |
Instances
newListStreamsResponse Source #
Arguments
| :: Int | |
| -> ListStreamsResponse |
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:
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.