| 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 |
Amazonka.IVS.ListStreams
Description
Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed.
This operation returns paginated results.
Synopsis
- data ListStreams = ListStreams' {}
- newListStreams :: ListStreams
- listStreams_nextToken :: Lens' ListStreams (Maybe Text)
- listStreams_maxResults :: Lens' ListStreams (Maybe Natural)
- data ListStreamsResponse = ListStreamsResponse' {
- nextToken :: Maybe Text
- httpStatus :: Int
- streams :: [StreamSummary]
- newListStreamsResponse :: Int -> ListStreamsResponse
- listStreamsResponse_nextToken :: Lens' ListStreamsResponse (Maybe Text)
- listStreamsResponse_httpStatus :: Lens' ListStreamsResponse Int
- listStreamsResponse_streams :: Lens' ListStreamsResponse [StreamSummary]
Creating a Request
data ListStreams Source #
See: newListStreams smart constructor.
Constructors
| 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 - The first stream to retrieve. This is used for pagination; see the
nextToken response field.
$sel:maxResults:ListStreams', listStreams_maxResults - Maximum number of streams to return. Default: 50.
Request Lenses
listStreams_nextToken :: Lens' ListStreams (Maybe Text) Source #
The first stream to retrieve. This is used for pagination; see the
nextToken response field.
listStreams_maxResults :: Lens' ListStreams (Maybe Natural) Source #
Maximum number of streams to return. Default: 50.
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:
$sel:nextToken:ListStreams', listStreamsResponse_nextToken - If there are more streams than maxResults, use nextToken in the
request to get the next set.
$sel:httpStatus:ListStreamsResponse', listStreamsResponse_httpStatus - The response's http status code.
$sel:streams:ListStreamsResponse', listStreamsResponse_streams - List of streams.
Response Lenses
listStreamsResponse_nextToken :: Lens' ListStreamsResponse (Maybe Text) Source #
If there are more streams than maxResults, use nextToken in the
request to get the next set.
listStreamsResponse_httpStatus :: Lens' ListStreamsResponse Int Source #
The response's http status code.
listStreamsResponse_streams :: Lens' ListStreamsResponse [StreamSummary] Source #
List of streams.