{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.kinesisvideoarchivedmedia#AWSAcuityReader": { "type": "service", "version": "2017-09-30", "operations": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetClip" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURL" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURL" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentList" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ListFragments" } ], "traits": { "aws.api#service": { "sdkId": "Kinesis Video Archived Media", "arnNamespace": "kinesisvideo", "cloudFormationName": "KinesisVideoArchivedMedia", "cloudTrailEventSource": "kinesisvideoarchivedmedia.amazonaws.com", "endpointPrefix": "kinesisvideo" }, "aws.auth#sigv4": { "name": "kinesisvideo" }, "aws.protocols#restJson1": {}, "smithy.api#documentation": "

", "smithy.api#title": "Amazon Kinesis Video Streams Archived Media" } }, "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Kinesis Video Streams has throttled the request because you have exceeded a limit. Try making the call later. For information about limits, see Kinesis Video Streams Limits.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#ClipFragmentSelector": { "type": "structure", "members": { "FragmentSelectorType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClipFragmentSelectorType", "traits": { "smithy.api#documentation": "

The origin of the timestamps to use (Server or Producer).

", "smithy.api#required": {} } }, "TimestampRange": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClipTimestampRange", "traits": { "smithy.api#documentation": "

The range of timestamps to return.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Describes the timestamp range and timestamp origin of a range of fragments.

\n

Fragments that have duplicate producer timestamps are deduplicated. This means that if\n producers are producing a stream of fragments with producer timestamps that are\n approximately equal to the true clock time, the clip will contain all of the fragments\n within the requested timestamp range. If some fragments are ingested within the same\n time range and very different points in time, only the oldest ingested collection of\n fragments are returned.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#ClipFragmentSelectorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PRODUCER_TIMESTAMP", "name": "PRODUCER_TIMESTAMP" }, { "value": "SERVER_TIMESTAMP", "name": "SERVER_TIMESTAMP" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#ClipTimestampRange": { "type": "structure", "members": { "StartTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The starting timestamp in the range of timestamps for which to return fragments.

\n

Only fragments that start exactly at or after StartTimestamp are included\n in the session. Fragments that start before StartTimestamp and continue\n past it aren't included in the session. If FragmentSelectorType is\n SERVER_TIMESTAMP, the StartTimestamp must be later than\n the stream head.

", "smithy.api#required": {} } }, "EndTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The end of the timestamp range for the requested media.

\n

This value must be within 24 hours of the specified StartTimestamp, and\n it must be later than the StartTimestamp value. If\n FragmentSelectorType for the request is SERVER_TIMESTAMP,\n this value must be in the past.

\n

This value is inclusive. The EndTimestamp is compared to the (starting)\n timestamp of the fragment. Fragments that start before the EndTimestamp\n value and continue past it are included in the session.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The range of timestamps for which to return fragments.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#ContainerFormat": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "FRAGMENTED_MP4", "name": "FRAGMENTED_MP4" }, { "value": "MPEG_TS", "name": "MPEG_TS" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#ContentType": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[a-zA-Z0-9_\\.\\-]+$" } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHDisplayFragmentNumber": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ALWAYS", "name": "ALWAYS" }, { "value": "NEVER", "name": "NEVER" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHDisplayFragmentTimestamp": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ALWAYS", "name": "ALWAYS" }, { "value": "NEVER", "name": "NEVER" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHFragmentSelector": { "type": "structure", "members": { "FragmentSelectorType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHFragmentSelectorType", "traits": { "smithy.api#documentation": "

The source of the timestamps for the requested media.

\n

When FragmentSelectorType is set to PRODUCER_TIMESTAMP and\n GetDASHStreamingSessionURLInput$PlaybackMode is\n ON_DEMAND or LIVE_REPLAY, the first fragment ingested with\n a producer timestamp within the specified FragmentSelector$TimestampRange is included in the media playlist. In\n addition, the fragments with producer timestamps within the TimestampRange\n ingested immediately following the first fragment (up to the GetDASHStreamingSessionURLInput$MaxManifestFragmentResults value) are\n included.

\n

Fragments that have duplicate producer timestamps are deduplicated. This means that if\n producers are producing a stream of fragments with producer timestamps that are\n approximately equal to the true clock time, the MPEG-DASH manifest will contain all of\n the fragments within the requested timestamp range. If some fragments are ingested\n within the same time range and very different points in time, only the oldest ingested\n collection of fragments are returned.

\n

When FragmentSelectorType is set to PRODUCER_TIMESTAMP and\n GetDASHStreamingSessionURLInput$PlaybackMode is LIVE,\n the producer timestamps are used in the MP4 fragments and for deduplication. But the\n most recently ingested fragments based on server timestamps are included in the\n MPEG-DASH manifest. This means that even if fragments ingested in the past have producer\n timestamps with values now, they are not included in the HLS media playlist.

\n

The default is SERVER_TIMESTAMP.

" } }, "TimestampRange": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHTimestampRange", "traits": { "smithy.api#documentation": "

The start and end of the timestamp range for the requested media.

\n

This value should not be present if PlaybackType is\n LIVE.

" } } }, "traits": { "smithy.api#documentation": "

Contains the range of timestamps for the requested media, and the source of the\n timestamps.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHFragmentSelectorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PRODUCER_TIMESTAMP", "name": "PRODUCER_TIMESTAMP" }, { "value": "SERVER_TIMESTAMP", "name": "SERVER_TIMESTAMP" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHMaxResults": { "type": "long", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 5000 } } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHPlaybackMode": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "LIVE", "name": "LIVE" }, { "value": "LIVE_REPLAY", "name": "LIVE_REPLAY" }, { "value": "ON_DEMAND", "name": "ON_DEMAND" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#DASHStreamingSessionURL": { "type": "string" }, "com.amazonaws.kinesisvideoarchivedmedia#DASHTimestampRange": { "type": "structure", "members": { "StartTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The start of the timestamp range for the requested media.

\n

If the DASHTimestampRange value is specified, the\n StartTimestamp value is required.

\n

Only fragments that start exactly at or after StartTimestamp are included\n in the session. Fragments that start before StartTimestamp and continue\n past it aren't included in the session. If FragmentSelectorType is\n SERVER_TIMESTAMP, the StartTimestamp must be later than\n the stream head.

" } }, "EndTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The end of the timestamp range for the requested media. This value must be within 24\n hours of the specified StartTimestamp, and it must be later than the\n StartTimestamp value.

\n

If FragmentSelectorType for the request is SERVER_TIMESTAMP,\n this value must be in the past.

\n\n

The EndTimestamp value is required for ON_DEMAND mode, but\n optional for LIVE_REPLAY mode. If the EndTimestamp is not set\n for LIVE_REPLAY mode then the session will continue to include newly\n ingested fragments until the session expires.

\n \n

This value is inclusive. The EndTimestamp is compared to the\n (starting) timestamp of the fragment. Fragments that start before the\n EndTimestamp value and continue past it are included in the\n session.

\n
" } } }, "traits": { "smithy.api#documentation": "

The start and end of the timestamp range for the requested media.

\n

This value should not be present if PlaybackType is\n LIVE.

\n

The values in DASHimestampRange are inclusive. Fragments that start\n exactly at or after the start time are included in the session. Fragments that start\n before the start time and continue past it are not included in the session.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage": { "type": "string" }, "com.amazonaws.kinesisvideoarchivedmedia#Expires": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 300, "max": 43200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#Fragment": { "type": "structure", "members": { "FragmentNumber": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentNumberString", "traits": { "smithy.api#documentation": "

The unique identifier of the fragment. This value monotonically increases based on the\n ingestion order.

" } }, "FragmentSizeInBytes": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Long", "traits": { "smithy.api#documentation": "

The total fragment size, including information about the fragment and contained media\n data.

" } }, "ProducerTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The timestamp from the producer corresponding to the fragment.

" } }, "ServerTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The timestamp from the AWS server corresponding to the fragment.

" } }, "FragmentLengthInMilliseconds": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Long", "traits": { "smithy.api#documentation": "

The playback duration or other time value associated with the fragment.

" } } }, "traits": { "smithy.api#documentation": "

Represents a segment of video or other time-delimited data.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#FragmentList": { "type": "list", "member": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Fragment" } }, "com.amazonaws.kinesisvideoarchivedmedia#FragmentNumberList": { "type": "list", "member": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentNumberString" }, "traits": { "smithy.api#length": { "min": 1, "max": 1000 } } }, "com.amazonaws.kinesisvideoarchivedmedia#FragmentNumberString": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 128 }, "smithy.api#pattern": "^[0-9]+$" } }, "com.amazonaws.kinesisvideoarchivedmedia#FragmentSelector": { "type": "structure", "members": { "FragmentSelectorType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentSelectorType", "traits": { "smithy.api#documentation": "

The origin of the timestamps to use (Server or Producer).

", "smithy.api#required": {} } }, "TimestampRange": { "target": "com.amazonaws.kinesisvideoarchivedmedia#TimestampRange", "traits": { "smithy.api#documentation": "

The range of timestamps to return.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

Describes the timestamp range and timestamp origin of a range of fragments.

\n

Only fragments with a start timestamp greater than or equal to the given start time\n and less than or equal to the end time are returned. For example, if a stream contains\n fragments with the following start timestamps:

\n \n

A fragment selector range with a start time of 00:00:01 and end time of 00:00:04\n would return the fragments with start times of 00:00:02 and 00:00:04.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#FragmentSelectorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PRODUCER_TIMESTAMP", "name": "PRODUCER_TIMESTAMP" }, { "value": "SERVER_TIMESTAMP", "name": "SERVER_TIMESTAMP" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#GetClip": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetClipInput" }, "output": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetClipOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidMediaFrameException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#MissingCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#UnsupportedStreamMediaTypeException" } ], "traits": { "smithy.api#documentation": "

Downloads an MP4 file (clip) containing the archived, on-demand media from the\n specified video stream over the specified time range.

\n

Both the StreamName and the StreamARN parameters are optional, but you must specify\n either the StreamName or the StreamARN when invoking this API operation.

\n\n

As a prerequisite to using GetCLip API, you must obtain an endpoint using\n GetDataEndpoint, specifying GET_CLIP for the\n APIName parameter.

\n

An Amazon Kinesis video stream has the following requirements for providing data\n through MP4:

\n \n\n

You can monitor the amount of outgoing data by monitoring the\n GetClip.OutgoingBytes Amazon CloudWatch metric. For information about\n using CloudWatch to monitor Kinesis Video Streams, see Monitoring Kinesis Video Streams. For pricing information, see Amazon Kinesis Video\n Streams Pricing and AWS\n Pricing. Charges for outgoing AWS data apply.

", "smithy.api#http": { "method": "POST", "uri": "/getClip", "code": 200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetClipInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideoarchivedmedia#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for which to retrieve the media clip.

\n

You must specify either the StreamName or the StreamARN.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the stream for which to retrieve the media clip.

\n

You must specify either the StreamName or the StreamARN.

" } }, "ClipFragmentSelector": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClipFragmentSelector", "traits": { "smithy.api#documentation": "

The time range of the requested clip and the source of the timestamps.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetClipOutput": { "type": "structure", "members": { "ContentType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ContentType", "traits": { "smithy.api#documentation": "

The content type of the media in the requested clip.

", "smithy.api#httpHeader": "Content-Type" } }, "Payload": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Payload", "traits": { "smithy.api#documentation": "

Traditional MP4 file that contains the media clip from the specified video stream. The\n output will contain the first 100 MB or the first 200 fragments from the specified start\n timestamp. For more information, see Kinesis\n Video Streams Limits.

", "smithy.api#httpPayload": {} } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURL": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURLInput" }, "output": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURLOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#MissingCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#UnsupportedStreamMediaTypeException" } ], "traits": { "smithy.api#documentation": "

Retrieves an MPEG Dynamic Adaptive Streaming over HTTP (DASH) URL for the stream. You\n can then open the URL in a media player to view the stream contents.

\n \n

Both the StreamName and the StreamARN parameters are\n optional, but you must specify either the StreamName or the\n StreamARN when invoking this API operation.

\n

An Amazon Kinesis video stream has the following requirements for providing data\n through MPEG-DASH:

\n \n\n

The following procedure shows how to use MPEG-DASH with Kinesis Video Streams:

\n
    \n
  1. \n

    Get an endpoint using GetDataEndpoint, specifying\n GET_DASH_STREAMING_SESSION_URL for the APIName\n parameter.

    \n
  2. \n
  3. \n

    Retrieve the MPEG-DASH URL using GetDASHStreamingSessionURL.\n Kinesis Video Streams creates an MPEG-DASH streaming session to be used for\n accessing content in a stream using the MPEG-DASH protocol.\n GetDASHStreamingSessionURL returns an authenticated URL (that\n includes an encrypted session token) for the session's MPEG-DASH\n manifest (the root resource needed for streaming with\n MPEG-DASH).

    \n \n

    Don't share or store this token where an unauthorized entity can access\n it. The token provides access to the content of the stream. Safeguard the\n token with the same measures that you use with your AWS credentials.

    \n
    \n

    The media that is made available through the manifest consists only of the\n requested stream, time range, and format. No other media data (such as frames\n outside the requested window or alternate bitrates) is made available.

    \n
  4. \n
  5. \n

    Provide the URL (containing the encrypted session token) for the MPEG-DASH\n manifest to a media player that supports the MPEG-DASH protocol. Kinesis Video\n Streams makes the initialization fragment and media fragments available through\n the manifest URL. The initialization fragment contains the codec private data\n for the stream, and other data needed to set up the video or audio decoder and\n renderer. The media fragments contain encoded video frames or encoded audio\n samples.

    \n
  6. \n
  7. \n

    The media player receives the authenticated URL and requests stream metadata\n and media data normally. When the media player requests data, it calls the\n following actions:

    \n \n
  8. \n
\n \n

For restrictions that apply to MPEG-DASH sessions, see Kinesis Video Streams Limits.

\n
\n

You can monitor the amount of data that the media player consumes by monitoring the\n GetMP4MediaFragment.OutgoingBytes Amazon CloudWatch metric. For\n information about using CloudWatch to monitor Kinesis Video Streams, see Monitoring Kinesis Video Streams. For pricing information, see Amazon Kinesis Video\n Streams Pricing and AWS\n Pricing. Charges for both HLS sessions and outgoing AWS data apply.

\n

For more information about HLS, see HTTP Live Streaming on the\n Apple Developer site.

\n\n \n

If an error is thrown after invoking a Kinesis Video Streams archived media API,\n in addition to the HTTP status code and the response body, it includes the following\n pieces of information:

\n \n

Both the HTTP status code and the ErrorType header can be utilized to make\n programmatic decisions about whether errors are retry-able and under what\n conditions, as well as provide information on what actions the client programmer\n might need to take in order to successfully try again.

\n

For more information, see the Errors section at\n the bottom of this topic, as well as Common Errors.\n

\n
", "smithy.api#http": { "method": "POST", "uri": "/getDASHStreamingSessionURL", "code": 200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURLInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideoarchivedmedia#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for which to retrieve the MPEG-DASH manifest URL.

\n

You must specify either the StreamName or the\n StreamARN.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the stream for which to retrieve the MPEG-DASH\n manifest URL.

\n

You must specify either the StreamName or the\n StreamARN.

" } }, "PlaybackMode": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHPlaybackMode", "traits": { "smithy.api#documentation": "

Whether to retrieve live, live replay, or archived, on-demand data.

\n

Features of the three types of sessions include the following:

\n \n

In all playback modes, if FragmentSelectorType is\n PRODUCER_TIMESTAMP, and if there are multiple fragments with the same\n start timestamp, the fragment that has the larger fragment number (that is, the newer\n fragment) is included in the MPEG-DASH manifest. The other fragments are not included.\n Fragments that have different timestamps but have overlapping durations are still\n included in the MPEG-DASH manifest. This can lead to unexpected behavior in the media\n player.

\n

The default is LIVE.

" } }, "DisplayFragmentTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHDisplayFragmentTimestamp", "traits": { "smithy.api#documentation": "

Per the MPEG-DASH specification, the wall-clock time of fragments in the manifest file\n can be derived using attributes in the manifest itself. However, typically, MPEG-DASH\n compatible media players do not properly handle gaps in the media timeline. Kinesis\n Video Streams adjusts the media timeline in the manifest file to enable playback of\n media with discontinuities. Therefore, the wall-clock time derived from the manifest\n file may be inaccurate. If DisplayFragmentTimestamp is set to ALWAYS, the\n accurate fragment timestamp is added to each S element in the manifest file with the\n attribute name “kvs:ts”. A custom MPEG-DASH media player is necessary to leverage this\n custom attribute.

\n

The default value is NEVER. When DASHFragmentSelector\n is SERVER_TIMESTAMP, the timestamps will be the server start timestamps.\n Similarly, when DASHFragmentSelector is\n PRODUCER_TIMESTAMP, the timestamps will be the producer start\n timestamps.

" } }, "DisplayFragmentNumber": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHDisplayFragmentNumber", "traits": { "smithy.api#documentation": "

Fragments are identified in the manifest file based on their sequence number in the\n session. If DisplayFragmentNumber is set to ALWAYS, the Kinesis Video\n Streams fragment number is added to each S element in the manifest file with the\n attribute name “kvs:fn”. These fragment numbers can be used for logging or for use with\n other APIs (e.g. GetMedia and GetMediaForFragmentList). A\n custom MPEG-DASH media player is necessary to leverage these this custom\n attribute.

\n

The default value is NEVER.

" } }, "DASHFragmentSelector": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHFragmentSelector", "traits": { "smithy.api#documentation": "

The time range of the requested fragment and the source of the timestamps.

\n

This parameter is required if PlaybackMode is ON_DEMAND or\n LIVE_REPLAY. This parameter is optional if PlaybackMode is\n LIVE. If PlaybackMode is LIVE, the\n FragmentSelectorType can be set, but the TimestampRange\n should not be set. If PlaybackMode is ON_DEMAND or\n LIVE_REPLAY, both FragmentSelectorType and\n TimestampRange must be set.

" } }, "Expires": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Expires", "traits": { "smithy.api#documentation": "

The time in seconds until the requested session expires. This value can be between 300\n (5 minutes) and 43200 (12 hours).

\n

When a session expires, no new calls to GetDashManifest,\n GetMP4InitFragment, or GetMP4MediaFragment can be made for\n that session.

\n

The default is 300 (5 minutes).

" } }, "MaxManifestFragmentResults": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHMaxResults", "traits": { "smithy.api#documentation": "

The maximum number of fragments that are returned in the MPEG-DASH manifest.

\n

When the PlaybackMode is LIVE, the most recent fragments are\n returned up to this value. When the PlaybackMode is ON_DEMAND,\n the oldest fragments are returned, up to this maximum number.

\n

When there are a higher number of fragments available in a live MPEG-DASH manifest,\n video players often buffer content before starting playback. Increasing the buffer size\n increases the playback latency, but it decreases the likelihood that rebuffering will\n occur during playback. We recommend that a live MPEG-DASH manifest have a minimum of 3\n fragments and a maximum of 10 fragments.

\n

The default is 5 fragments if PlaybackMode is LIVE or\n LIVE_REPLAY, and 1,000 if PlaybackMode is\n ON_DEMAND.

\n

The maximum value of 1,000 fragments corresponds to more than 16 minutes of video on\n streams with 1-second fragments, and more than 2 1/2 hours of video on streams with\n 10-second fragments.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetDASHStreamingSessionURLOutput": { "type": "structure", "members": { "DASHStreamingSessionURL": { "target": "com.amazonaws.kinesisvideoarchivedmedia#DASHStreamingSessionURL", "traits": { "smithy.api#documentation": "

The URL (containing the session token) that a media player can use to retrieve the\n MPEG-DASH manifest.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURL": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURLInput" }, "output": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURLOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#MissingCodecPrivateDataException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#UnsupportedStreamMediaTypeException" } ], "traits": { "smithy.api#documentation": "

Retrieves an HTTP Live Streaming (HLS) URL for the stream. You can then open the URL\n in a browser or media player to view the stream contents.

\n

Both the StreamName and the StreamARN parameters are\n optional, but you must specify either the StreamName or the\n StreamARN when invoking this API operation.

\n

An Amazon Kinesis video stream has the following requirements for providing data\n through HLS:

\n \n

Kinesis Video Streams HLS sessions contain fragments in the fragmented MPEG-4 form\n (also called fMP4 or CMAF) or the MPEG-2 form (also called TS chunks, which the HLS\n specification also supports). For more information about HLS fragment types, see the\n HLS\n specification.

\n

The following procedure shows how to use HLS with Kinesis Video Streams:

\n
    \n
  1. \n

    Get an endpoint using GetDataEndpoint, specifying\n GET_HLS_STREAMING_SESSION_URL for the APIName\n parameter.

    \n
  2. \n
  3. \n

    Retrieve the HLS URL using GetHLSStreamingSessionURL. Kinesis\n Video Streams creates an HLS streaming session to be used for accessing content\n in a stream using the HLS protocol. GetHLSStreamingSessionURL\n returns an authenticated URL (that includes an encrypted session token) for the\n session's HLS master playlist (the root resource needed for\n streaming with HLS).

    \n \n

    Don't share or store this token where an unauthorized entity could access\n it. The token provides access to the content of the stream. Safeguard the\n token with the same measures that you would use with your AWS\n credentials.

    \n
    \n

    The media that is made available through the playlist consists only of the\n requested stream, time range, and format. No other media data (such as frames\n outside the requested window or alternate bitrates) is made available.

    \n
  4. \n
  5. \n

    Provide the URL (containing the encrypted session token) for the HLS master\n playlist to a media player that supports the HLS protocol. Kinesis Video Streams\n makes the HLS media playlist, initialization fragment, and media fragments\n available through the master playlist URL. The initialization fragment contains\n the codec private data for the stream, and other data needed to set up the video\n or audio decoder and renderer. The media fragments contain H.264-encoded video\n frames or AAC-encoded audio samples.

    \n
  6. \n
  7. \n

    The media player receives the authenticated URL and requests stream metadata\n and media data normally. When the media player requests data, it calls the\n following actions:

    \n \n
  8. \n
\n

A streaming session URL must not be shared between players. The service\n might throttle a session if multiple media players are sharing it. For\n connection limits, see Kinesis Video Streams Limits.

\n

You can monitor the amount of data that the media player consumes by monitoring the\n GetMP4MediaFragment.OutgoingBytes Amazon CloudWatch metric. For\n information about using CloudWatch to monitor Kinesis Video Streams, see Monitoring Kinesis Video Streams. For pricing information, see Amazon Kinesis Video\n Streams Pricing and AWS\n Pricing. Charges for both HLS sessions and outgoing AWS data apply.

\n

For more information about HLS, see HTTP Live Streaming on the\n Apple Developer site.

\n\n \n

If an error is thrown after invoking a Kinesis Video Streams archived media API,\n in addition to the HTTP status code and the response body, it includes the following\n pieces of information:

\n \n

Both the HTTP status code and the ErrorType header can be utilized to make\n programmatic decisions about whether errors are retry-able and under what\n conditions, as well as provide information on what actions the client programmer\n might need to take in order to successfully try again.

\n

For more information, see the Errors section at\n the bottom of this topic, as well as Common Errors.\n

\n
", "smithy.api#http": { "method": "POST", "uri": "/getHLSStreamingSessionURL", "code": 200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURLInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideoarchivedmedia#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream for which to retrieve the HLS master playlist URL.

\n

You must specify either the StreamName or the\n StreamARN.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the stream for which to retrieve the HLS master\n playlist URL.

\n

You must specify either the StreamName or the\n StreamARN.

" } }, "PlaybackMode": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSPlaybackMode", "traits": { "smithy.api#documentation": "

Whether to retrieve live, live replay, or archived, on-demand data.

\n

Features of the three types of sessions include the following:

\n \n

In all playback modes, if FragmentSelectorType is\n PRODUCER_TIMESTAMP, and if there are multiple fragments with the same\n start timestamp, the fragment that has the largest fragment number (that is, the newest\n fragment) is included in the HLS media playlist. The other fragments are not included.\n Fragments that have different timestamps but have overlapping durations are still\n included in the HLS media playlist. This can lead to unexpected behavior in the media\n player.

\n

The default is LIVE.

" } }, "HLSFragmentSelector": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSFragmentSelector", "traits": { "smithy.api#documentation": "

The time range of the requested fragment and the source of the timestamps.

\n

This parameter is required if PlaybackMode is ON_DEMAND or\n LIVE_REPLAY. This parameter is optional if PlaybackMode is\n LIVE. If PlaybackMode is LIVE, the\n FragmentSelectorType can be set, but the TimestampRange\n should not be set. If PlaybackMode is ON_DEMAND or\n LIVE_REPLAY, both FragmentSelectorType and\n TimestampRange must be set.

" } }, "ContainerFormat": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ContainerFormat", "traits": { "smithy.api#documentation": "

Specifies which format should be used for packaging the media. Specifying the\n FRAGMENTED_MP4 container format packages the media into MP4 fragments\n (fMP4 or CMAF). This is the recommended packaging because there is minimal packaging\n overhead. The other container format option is MPEG_TS. HLS has supported\n MPEG TS chunks since it was released and is sometimes the only supported packaging on\n older HLS players. MPEG TS typically has a 5-25 percent packaging overhead. This means\n MPEG TS typically requires 5-25 percent more bandwidth and cost than fMP4.

\n

The default is FRAGMENTED_MP4.

" } }, "DiscontinuityMode": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSDiscontinuityMode", "traits": { "smithy.api#documentation": "

Specifies when flags marking discontinuities between fragments are added to the media\n playlists.

\n

Media players typically build a timeline of media content to play, based on the\n timestamps of each fragment. This means that if there is any overlap or gap between\n fragments (as is typical if HLSFragmentSelector is set to\n SERVER_TIMESTAMP), the media player timeline will also have small gaps\n between fragments in some places, and will overwrite frames in other places. Gaps in the\n media player timeline can cause playback to stall and overlaps can cause playback to be\n jittery. When there are discontinuity flags between fragments, the media player is\n expected to reset the timeline, resulting in the next fragment being played immediately\n after the previous fragment.

\n

The following modes are supported:

\n \n

The default is ALWAYS when HLSFragmentSelector is set\n to SERVER_TIMESTAMP, and NEVER when it is set to\n PRODUCER_TIMESTAMP.

" } }, "DisplayFragmentTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSDisplayFragmentTimestamp", "traits": { "smithy.api#documentation": "

Specifies when the fragment start timestamps should be included in the HLS media\n playlist. Typically, media players report the playhead position as a time relative to\n the start of the first fragment in the playback session. However, when the start\n timestamps are included in the HLS media playlist, some media players might report the\n current playhead as an absolute time based on the fragment timestamps. This can be\n useful for creating a playback experience that shows viewers the wall-clock time of the\n media.

\n

The default is NEVER. When HLSFragmentSelector is\n SERVER_TIMESTAMP, the timestamps will be the server start timestamps.\n Similarly, when HLSFragmentSelector is\n PRODUCER_TIMESTAMP, the timestamps will be the producer start timestamps.\n

" } }, "Expires": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Expires", "traits": { "smithy.api#documentation": "

The time in seconds until the requested session expires. This value can be between 300\n (5 minutes) and 43200 (12 hours).

\n

When a session expires, no new calls to GetHLSMasterPlaylist,\n GetHLSMediaPlaylist, GetMP4InitFragment,\n GetMP4MediaFragment, or GetTSFragment can be made for that\n session.

\n

The default is 300 (5 minutes).

" } }, "MaxMediaPlaylistFragmentResults": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSMaxResults", "traits": { "smithy.api#documentation": "

The maximum number of fragments that are returned in the HLS media playlists.

\n

When the PlaybackMode is LIVE, the most recent fragments are\n returned up to this value. When the PlaybackMode is ON_DEMAND,\n the oldest fragments are returned, up to this maximum number.

\n

When there are a higher number of fragments available in a live HLS media playlist,\n video players often buffer content before starting playback. Increasing the buffer size\n increases the playback latency, but it decreases the likelihood that rebuffering will\n occur during playback. We recommend that a live HLS media playlist have a minimum of 3\n fragments and a maximum of 10 fragments.

\n

The default is 5 fragments if PlaybackMode is LIVE or\n LIVE_REPLAY, and 1,000 if PlaybackMode is\n ON_DEMAND.

\n

The maximum value of 5,000 fragments corresponds to more than 80 minutes of video on\n streams with 1-second fragments, and more than 13 hours of video on streams with\n 10-second fragments.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetHLSStreamingSessionURLOutput": { "type": "structure", "members": { "HLSStreamingSessionURL": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSStreamingSessionURL", "traits": { "smithy.api#documentation": "

The URL (containing the session token) that a media player can use to retrieve the HLS\n master playlist.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentList": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentListInput" }, "output": { "target": "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentListOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Gets media for a list of fragments (specified by fragment number) from the archived\n data in an Amazon Kinesis video stream.

\n\n \n

You must first call the GetDataEndpoint API to get an endpoint.\n Then send the GetMediaForFragmentList requests to this endpoint using\n the --endpoint-url\n parameter.

\n
\n\n

For limits, see Kinesis Video Streams Limits.

\n\n \n

If an error is thrown after invoking a Kinesis Video Streams archived media API,\n in addition to the HTTP status code and the response body, it includes the following\n pieces of information:

\n \n

Both the HTTP status code and the ErrorType header can be utilized to make\n programmatic decisions about whether errors are retry-able and under what\n conditions, as well as provide information on what actions the client programmer\n might need to take in order to successfully try again.

\n

For more information, see the Errors section at\n the bottom of this topic, as well as Common Errors.\n

\n
", "smithy.api#http": { "method": "POST", "uri": "/getMediaForFragmentList", "code": 200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentListInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideoarchivedmedia#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream from which to retrieve fragment media. Specify either this parameter or the StreamARN parameter.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the stream from which to retrieve fragment media. Specify either this parameter or the StreamName parameter.

" } }, "Fragments": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentNumberList", "traits": { "smithy.api#documentation": "

A list of the numbers of fragments for which to retrieve media. You retrieve these\n values with ListFragments.

", "smithy.api#required": {} } } } }, "com.amazonaws.kinesisvideoarchivedmedia#GetMediaForFragmentListOutput": { "type": "structure", "members": { "ContentType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ContentType", "traits": { "smithy.api#documentation": "

The content type of the requested media.

", "smithy.api#httpHeader": "Content-Type" } }, "Payload": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Payload", "traits": { "smithy.api#documentation": "

The payload that Kinesis Video Streams returns is a sequence of chunks from the\n specified stream. For information about the chunks, see PutMedia. The chunks that Kinesis Video Streams returns in the\n GetMediaForFragmentList call also include the following additional\n Matroska (MKV) tags:

\n \n

The following tags will be included if an exception occurs:

\n ", "smithy.api#httpPayload": {} } } } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSDiscontinuityMode": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ALWAYS", "name": "ALWAYS" }, { "value": "NEVER", "name": "NEVER" }, { "value": "ON_DISCONTINUITY", "name": "ON_DISCONTINUITY" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSDisplayFragmentTimestamp": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "ALWAYS", "name": "ALWAYS" }, { "value": "NEVER", "name": "NEVER" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSFragmentSelector": { "type": "structure", "members": { "FragmentSelectorType": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSFragmentSelectorType", "traits": { "smithy.api#documentation": "

The source of the timestamps for the requested media.

\n

When FragmentSelectorType is set to PRODUCER_TIMESTAMP and\n GetHLSStreamingSessionURLInput$PlaybackMode is\n ON_DEMAND or LIVE_REPLAY, the first fragment ingested with\n a producer timestamp within the specified FragmentSelector$TimestampRange is included in the media playlist. In\n addition, the fragments with producer timestamps within the TimestampRange\n ingested immediately following the first fragment (up to the GetHLSStreamingSessionURLInput$MaxMediaPlaylistFragmentResults value)\n are included.

\n

Fragments that have duplicate producer timestamps are deduplicated. This means that if\n producers are producing a stream of fragments with producer timestamps that are\n approximately equal to the true clock time, the HLS media playlists will contain all of\n the fragments within the requested timestamp range. If some fragments are ingested\n within the same time range and very different points in time, only the oldest ingested\n collection of fragments are returned.

\n

When FragmentSelectorType is set to PRODUCER_TIMESTAMP and\n GetHLSStreamingSessionURLInput$PlaybackMode is LIVE,\n the producer timestamps are used in the MP4 fragments and for deduplication. But the\n most recently ingested fragments based on server timestamps are included in the HLS\n media playlist. This means that even if fragments ingested in the past have producer\n timestamps with values now, they are not included in the HLS media playlist.

\n

The default is SERVER_TIMESTAMP.

" } }, "TimestampRange": { "target": "com.amazonaws.kinesisvideoarchivedmedia#HLSTimestampRange", "traits": { "smithy.api#documentation": "

The start and end of the timestamp range for the requested media.

\n

This value should not be present if PlaybackType is\n LIVE.

" } } }, "traits": { "smithy.api#documentation": "

Contains the range of timestamps for the requested media, and the source of the\n timestamps.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSFragmentSelectorType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "PRODUCER_TIMESTAMP", "name": "PRODUCER_TIMESTAMP" }, { "value": "SERVER_TIMESTAMP", "name": "SERVER_TIMESTAMP" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSMaxResults": { "type": "long", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 5000 } } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSPlaybackMode": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "LIVE", "name": "LIVE" }, { "value": "LIVE_REPLAY", "name": "LIVE_REPLAY" }, { "value": "ON_DEMAND", "name": "ON_DEMAND" } ] } }, "com.amazonaws.kinesisvideoarchivedmedia#HLSStreamingSessionURL": { "type": "string" }, "com.amazonaws.kinesisvideoarchivedmedia#HLSTimestampRange": { "type": "structure", "members": { "StartTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The start of the timestamp range for the requested media.

\n

If the HLSTimestampRange value is specified, the\n StartTimestamp value is required.

\n

Only fragments that start exactly at or after StartTimestamp are included\n in the session. Fragments that start before StartTimestamp and continue\n past it aren't included in the session. If FragmentSelectorType is\n SERVER_TIMESTAMP, the StartTimestamp must be later than\n the stream head.

" } }, "EndTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The end of the timestamp range for the requested media. This value must be within 24\n hours of the specified StartTimestamp, and it must be later than the\n StartTimestamp value.

\n

If FragmentSelectorType for the request is SERVER_TIMESTAMP,\n this value must be in the past.

\n

The EndTimestamp value is required for ON_DEMAND mode, but\n optional for LIVE_REPLAY mode. If the EndTimestamp is not set\n for LIVE_REPLAY mode then the session will continue to include newly\n ingested fragments until the session expires.

\n \n

This value is inclusive. The EndTimestamp is compared to the\n (starting) timestamp of the fragment. Fragments that start before the\n EndTimestamp value and continue past it are included in the\n session.

\n
" } } }, "traits": { "smithy.api#documentation": "

The start and end of the timestamp range for the requested media.

\n

This value should not be present if PlaybackType is\n LIVE.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

A specified parameter exceeds its restrictions, is not supported, or can't be\n used.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#InvalidCodecPrivateDataException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The codec private data in at least one of the tracks of the video stream is not valid\n for this operation.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#InvalidMediaFrameException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

One or more frames in the requested clip could not be parsed based on the specified\n codec.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#ListFragments": { "type": "operation", "input": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsInput" }, "output": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsOutput" }, "errors": [ { "target": "com.amazonaws.kinesisvideoarchivedmedia#ClientLimitExceededException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#InvalidArgumentException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException" }, { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException" } ], "traits": { "smithy.api#documentation": "

Returns a list of Fragment objects from the specified stream and\n timestamp range within the archived data.

\n

Listing fragments is eventually consistent. This means that even if the producer\n receives an acknowledgment that a fragment is persisted, the result might not be\n returned immediately from a request to ListFragments. However, results are\n typically available in less than one second.

\n \n

You must first call the GetDataEndpoint API to get an endpoint.\n Then send the ListFragments requests to this endpoint using the --endpoint-url\n parameter.

\n
\n\n \n

If an error is thrown after invoking a Kinesis Video Streams archived media API,\n in addition to the HTTP status code and the response body, it includes the following\n pieces of information:

\n \n

Both the HTTP status code and the ErrorType header can be utilized to make\n programmatic decisions about whether errors are retry-able and under what\n conditions, as well as provide information on what actions the client programmer\n might need to take in order to successfully try again.

\n

For more information, see the Errors section at\n the bottom of this topic, as well as Common Errors.\n

\n
", "smithy.api#http": { "method": "POST", "uri": "/listFragments", "code": 200 } } }, "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsInput": { "type": "structure", "members": { "StreamName": { "target": "com.amazonaws.kinesisvideoarchivedmedia#StreamName", "traits": { "smithy.api#documentation": "

The name of the stream from which to retrieve a fragment list. Specify either this parameter or the StreamARN parameter.

" } }, "StreamARN": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN", "traits": { "smithy.api#documentation": "

The Amazon Resource Name (ARN) of the stream from which to retrieve a fragment list. Specify either this parameter or the StreamName parameter.

" } }, "MaxResults": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsMaxResults", "traits": { "smithy.api#documentation": "

The total number of fragments to return. If the total number of fragments available is\n more than the value specified in max-results, then a ListFragmentsOutput$NextToken is provided in the output that you can use\n to resume pagination.

" } }, "NextToken": { "target": "com.amazonaws.kinesisvideoarchivedmedia#NextToken", "traits": { "smithy.api#documentation": "

A token to specify where to start paginating. This is the ListFragmentsOutput$NextToken from a previously truncated\n response.

" } }, "FragmentSelector": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentSelector", "traits": { "smithy.api#documentation": "

Describes the timestamp range and timestamp origin for the range of fragments to\n return.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsMaxResults": { "type": "long", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 1000 } } }, "com.amazonaws.kinesisvideoarchivedmedia#ListFragmentsOutput": { "type": "structure", "members": { "Fragments": { "target": "com.amazonaws.kinesisvideoarchivedmedia#FragmentList", "traits": { "smithy.api#documentation": "

A list of archived Fragment objects from the stream that meet the\n selector criteria. Results are in no specific order, even across pages.

" } }, "NextToken": { "target": "com.amazonaws.kinesisvideoarchivedmedia#NextToken", "traits": { "smithy.api#documentation": "

If the returned list is truncated, the operation returns this token to use to retrieve\n the next page of results. This value is null when there are no more results\n to return.

" } } } }, "com.amazonaws.kinesisvideoarchivedmedia#Long": { "type": "long" }, "com.amazonaws.kinesisvideoarchivedmedia#MissingCodecPrivateDataException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

No codec private data was found in at least one of tracks of the video stream.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#NextToken": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 4096 }, "smithy.api#pattern": "[a-zA-Z0-9+/]+={0,2}" } }, "com.amazonaws.kinesisvideoarchivedmedia#NoDataRetentionException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

A streaming session was requested for a stream that does not retain data (that is, has\n a DataRetentionInHours of 0).

", "smithy.api#error": "client", "smithy.api#httpError": 400 } }, "com.amazonaws.kinesisvideoarchivedmedia#NotAuthorizedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

Status Code: 403, The caller is not authorized to perform an operation on the given\n stream, or the token has expired.

", "smithy.api#error": "client", "smithy.api#httpError": 401 } }, "com.amazonaws.kinesisvideoarchivedmedia#Payload": { "type": "blob", "traits": { "smithy.api#streaming": {} } }, "com.amazonaws.kinesisvideoarchivedmedia#ResourceARN": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 1024 }, "smithy.api#pattern": "arn:[a-z\\d-]+:kinesisvideo:[a-z0-9-]+:[0-9]+:[a-z]+/[a-zA-Z0-9_.-]+/[0-9]+" } }, "com.amazonaws.kinesisvideoarchivedmedia#ResourceNotFoundException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

\n GetMedia throws this error when Kinesis Video Streams can't find the stream\n that you specified.

\n

\n GetHLSStreamingSessionURL and GetDASHStreamingSessionURL throw\n this error if a session with a PlaybackMode of ON_DEMAND or\n LIVE_REPLAYis requested for a stream that has no fragments within the\n requested time range, or if a session with a PlaybackMode of\n LIVE is requested for a stream that has no fragments within the last 30\n seconds.

", "smithy.api#error": "client", "smithy.api#httpError": 404 } }, "com.amazonaws.kinesisvideoarchivedmedia#StreamName": { "type": "string", "traits": { "smithy.api#length": { "min": 1, "max": 256 }, "smithy.api#pattern": "[a-zA-Z0-9_.-]+" } }, "com.amazonaws.kinesisvideoarchivedmedia#Timestamp": { "type": "timestamp" }, "com.amazonaws.kinesisvideoarchivedmedia#TimestampRange": { "type": "structure", "members": { "StartTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The starting timestamp in the range of timestamps for which to return\n fragments.

", "smithy.api#required": {} } }, "EndTimestamp": { "target": "com.amazonaws.kinesisvideoarchivedmedia#Timestamp", "traits": { "smithy.api#documentation": "

The ending timestamp in the range of timestamps for which to return fragments.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

The range of timestamps for which to return fragments.

" } }, "com.amazonaws.kinesisvideoarchivedmedia#UnsupportedStreamMediaTypeException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.kinesisvideoarchivedmedia#ErrorMessage" } }, "traits": { "smithy.api#documentation": "

The type of the media (for example, h.264 or h.265 video or ACC or G.711 audio) could\n not be determined from the codec IDs of the tracks in the first fragment for a playback\n session. The codec ID for track 1 should be V_MPEG/ISO/AVC and, optionally,\n the codec ID for track 2 should be A_AAC.

", "smithy.api#error": "client", "smithy.api#httpError": 400 } } } }