list_streams

list_streams(**kwargs)

Gets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed.

See also: AWS API Documentation

Request Syntax

response = client.list_streams(
    filterBy={
        'health': 'HEALTHY'|'STARVING'|'UNKNOWN'
    },
    maxResults=123,
    nextToken='string'
)
Parameters
  • filterBy (dict) --

    Filters the stream list to match the specified criterion.

    • health (string) --

      The stream’s health.

  • maxResults (integer) -- Maximum number of streams to return. Default: 100.
  • nextToken (string) -- The first stream to retrieve. This is used for pagination; see the nextToken response field.
Return type

dict

Returns

Response Syntax

{
    'nextToken': 'string',
    'streams': [
        {
            'channelArn': 'string',
            'health': 'HEALTHY'|'STARVING'|'UNKNOWN',
            'startTime': datetime(2015, 1, 1),
            'state': 'LIVE'|'OFFLINE',
            'streamId': 'string',
            'viewerCount': 123
        },
    ]
}

Response Structure

  • (dict) --

    • nextToken (string) --

      If there are more streams than maxResults , use nextToken in the request to get the next set.

    • streams (list) --

      List of streams.

      • (dict) --

        Summary information about a stream.

        • channelArn (string) --

          Channel ARN for the stream.

        • health (string) --

          The stream’s health.

        • startTime (datetime) --

          Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string .

        • state (string) --

          The stream’s state.

        • streamId (string) --

          Unique identifier for a live or previously live stream in the specified channel.

        • viewerCount (integer) --

          A count of concurrent views of the stream. Typically, a new view appears in viewerCount within 15 seconds of when video playback starts and a view is removed from viewerCount within 1 minute of when video playback ends. A value of -1 indicates that the request timed out; in this case, retry.

Exceptions

  • IVS.Client.exceptions.AccessDeniedException
  • IVS.Client.exceptions.ValidationException