KinesisVideo.Client.
list_streams
(**kwargs)¶Returns an array of StreamInfo
objects. Each object describes a stream. To retrieve only streams that satisfy a specific condition, you can specify a StreamNameCondition
.
See also: AWS API Documentation
Request Syntax
response = client.list_streams(
MaxResults=123,
NextToken='string',
StreamNameCondition={
'ComparisonOperator': 'BEGINS_WITH',
'ComparisonValue': 'string'
}
)
ListStreams
operation is truncated, the call returns the NextToken
in the response. To get another batch of streams, provide this token in your next request.Optional: Returns only streams that satisfy a specific condition. Currently, you can specify only the prefix of a stream name as a condition.
A comparison operator. Currently, you can specify only the BEGINS_WITH
operator, which finds streams whose names start with a given prefix.
A value to compare.
dict
Response Syntax
{
'StreamInfoList': [
{
'DeviceName': 'string',
'StreamName': 'string',
'StreamARN': 'string',
'MediaType': 'string',
'KmsKeyId': 'string',
'Version': 'string',
'Status': 'CREATING'|'ACTIVE'|'UPDATING'|'DELETING',
'CreationTime': datetime(2015, 1, 1),
'DataRetentionInHours': 123
},
],
'NextToken': 'string'
}
Response Structure
(dict) --
StreamInfoList (list) --
An array of StreamInfo
objects.
(dict) --
An object describing a Kinesis video stream.
DeviceName (string) --
The name of the device that is associated with the stream.
StreamName (string) --
The name of the stream.
StreamARN (string) --
The Amazon Resource Name (ARN) of the stream.
MediaType (string) --
The MediaType
of the stream.
KmsKeyId (string) --
The ID of the Key Management Service (KMS) key that Kinesis Video Streams uses to encrypt data on the stream.
Version (string) --
The version of the stream.
Status (string) --
The status of the stream.
CreationTime (datetime) --
A time stamp that indicates when the stream was created.
DataRetentionInHours (integer) --
How long the stream retains data, in hours.
NextToken (string) --
If the response is truncated, the call returns this element with a token. To get the next batch of streams, use this token in your next request.
Exceptions
KinesisVideo.Client.exceptions.ClientLimitExceededException
KinesisVideo.Client.exceptions.InvalidArgumentException