KinesisVideoArchivedMedia.Paginator.
ListFragments
¶paginator = client.get_paginator('list_fragments')
paginate
(**kwargs)¶Creates an iterator that will paginate through responses from KinesisVideoArchivedMedia.Client.list_fragments()
.
See also: AWS API Documentation
Request Syntax
response_iterator = paginator.paginate(
StreamName='string',
StreamARN='string',
FragmentSelector={
'FragmentSelectorType': 'PRODUCER_TIMESTAMP'|'SERVER_TIMESTAMP',
'TimestampRange': {
'StartTimestamp': datetime(2015, 1, 1),
'EndTimestamp': datetime(2015, 1, 1)
}
},
PaginationConfig={
'MaxItems': 123,
'PageSize': 123,
'StartingToken': 'string'
}
)
StreamARN
parameter.StreamName
parameter.Describes the timestamp range and timestamp origin for the range of fragments to return.
The origin of the timestamps to use (Server or Producer).
The range of timestamps to return.
The starting timestamp in the range of timestamps for which to return fragments.
The ending timestamp in the range of timestamps for which to return fragments.
A dictionary that provides parameters to control pagination.
The total number of items to return. If the total number of items available is more than the value specified in max-items then a NextToken
will be provided in the output that you can use to resume pagination.
The size of each page.
A token to specify where to start paginating. This is the NextToken
from a previous response.
dict
Response Syntax
{
'Fragments': [
{
'FragmentNumber': 'string',
'FragmentSizeInBytes': 123,
'ProducerTimestamp': datetime(2015, 1, 1),
'ServerTimestamp': datetime(2015, 1, 1),
'FragmentLengthInMilliseconds': 123
},
],
}
Response Structure
(dict) --
Fragments (list) --
A list of archived Fragment objects from the stream that meet the selector criteria. Results are in no specific order, even across pages.
(dict) --
Represents a segment of video or other time-delimited data.
FragmentNumber (string) --
The unique identifier of the fragment. This value monotonically increases based on the ingestion order.
FragmentSizeInBytes (integer) --
The total fragment size, including information about the fragment and contained media data.
ProducerTimestamp (datetime) --
The timestamp from the producer corresponding to the fragment.
ServerTimestamp (datetime) --
The timestamp from the AWS server corresponding to the fragment.
FragmentLengthInMilliseconds (integer) --
The playback duration or other time value associated with the fragment.