Skip to main content

streams

Creates, updates, deletes, gets or lists a streams resource.

Overview​

Namestreams
TypeResource
Idaws.ivs.streams

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
channel_arnstringChannel ARN for the stream. (pattern: <code>arn:aws:ivs:[a-z0-9-]+:[0-9]+:channel/[a-zA-Z0-9-]+</code>)
healthstringThe stream’s health. (HEALTHY, STARVING, UNKNOWN)
playback_urlstringURL of the master playlist, required by the video player to play the HLS stream.
start_timestring (date-time)Time of the stream’s start. This is an ISO 8601 timestamp; note that this is returned as a string.
statestringThe stream’s state. Do not rely on the OFFLINE state, as the API may not return it; instead, a "NotBroadcasting" error will indicate that the stream is not live. (LIVE, OFFLINE)
stream_idstringUnique identifier for a live or previously live stream in the specified channel. (pattern: <code>st-[a-zA-Z0-9]+</code>)
viewer_countinteger (int64)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.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_streamselectregionGets information about the active (live) stream on a specified channel.
list_streamsselectregionGets summary information about live streams in your account, in the Amazon Web Services region where the API request is processed.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples​

Gets information about the active (live) stream on a specified channel.

SELECT
channel_arn,
health,
playback_url,
start_time,
state,
stream_id,
viewer_count
FROM aws.ivs.streams
WHERE region = '{{ region }}' -- required
;