libZSservicesZSamazonka-kinesis-video-archived-mediaZSamazonka-kinesis-video-archived-media
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Description

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

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

For limits, see Kinesis Video Streams Limits.

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

  • x-amz-ErrorType HTTP header – contains a more specific error type in addition to what the HTTP status code provides.
  • x-amz-RequestId HTTP header – if you want to report an issue to AWS, the support team can better diagnose the problem if given the Request Id.

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

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

Synopsis

Creating a Request

data GetMediaForFragmentList Source #

See: newGetMediaForFragmentList smart constructor.

Constructors

GetMediaForFragmentList' 

Fields

  • streamARN :: Maybe Text

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

  • streamName :: Maybe Text

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

  • fragments :: NonEmpty Text

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

Instances

Instances details
Eq GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Read GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Show GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Generic GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Associated Types

type Rep GetMediaForFragmentList :: Type -> Type #

NFData GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Methods

rnf :: GetMediaForFragmentList -> () #

Hashable GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

ToJSON GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

AWSRequest GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

ToHeaders GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

ToPath GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

ToQuery GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

type Rep GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

type Rep GetMediaForFragmentList = D1 ('MetaData "GetMediaForFragmentList" "Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList" "libZSservicesZSamazonka-kinesis-video-archived-mediaZSamazonka-kinesis-video-archived-media" 'False) (C1 ('MetaCons "GetMediaForFragmentList'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "fragments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)))))
type AWSResponse GetMediaForFragmentList Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

newGetMediaForFragmentList Source #

Create a value of GetMediaForFragmentList with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:streamARN:GetMediaForFragmentList', getMediaForFragmentList_streamARN - The Amazon Resource Name (ARN) of the stream from which to retrieve fragment media. Specify either this parameter or the StreamName parameter.

$sel:streamName:GetMediaForFragmentList', getMediaForFragmentList_streamName - The name of the stream from which to retrieve fragment media. Specify either this parameter or the StreamARN parameter.

$sel:fragments:GetMediaForFragmentList', getMediaForFragmentList_fragments - A list of the numbers of fragments for which to retrieve media. You retrieve these values with ListFragments.

Request Lenses

getMediaForFragmentList_streamARN :: Lens' GetMediaForFragmentList (Maybe Text) Source #

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

getMediaForFragmentList_streamName :: Lens' GetMediaForFragmentList (Maybe Text) Source #

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

getMediaForFragmentList_fragments :: Lens' GetMediaForFragmentList (NonEmpty Text) Source #

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

Destructuring the Response

data GetMediaForFragmentListResponse Source #

See: newGetMediaForFragmentListResponse smart constructor.

Constructors

GetMediaForFragmentListResponse' 

Fields

  • contentType :: Maybe Text

    The content type of the requested media.

  • httpStatus :: Int

    The response's http status code.

  • payload :: ResponseBody

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

    • AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk.
    • AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side timestamp of the fragment.
    • AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - Producer-side timestamp of the fragment.

    The following tags will be included if an exception occurs:

    • AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the exception
    • AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer code of the exception
    • AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A text description of the exception

Instances

Instances details
Show GetMediaForFragmentListResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Generic GetMediaForFragmentListResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

Associated Types

type Rep GetMediaForFragmentListResponse :: Type -> Type #

type Rep GetMediaForFragmentListResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList

type Rep GetMediaForFragmentListResponse = D1 ('MetaData "GetMediaForFragmentListResponse" "Amazonka.KinesisVideoArchivedMedia.GetMediaForFragmentList" "libZSservicesZSamazonka-kinesis-video-archived-mediaZSamazonka-kinesis-video-archived-media" 'False) (C1 ('MetaCons "GetMediaForFragmentListResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "contentType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "payload") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResponseBody))))

newGetMediaForFragmentListResponse Source #

Create a value of GetMediaForFragmentListResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:contentType:GetMediaForFragmentListResponse', getMediaForFragmentListResponse_contentType - The content type of the requested media.

$sel:httpStatus:GetMediaForFragmentListResponse', getMediaForFragmentListResponse_httpStatus - The response's http status code.

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

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk.
  • AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side timestamp of the fragment.
  • AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - Producer-side timestamp of the fragment.

The following tags will be included if an exception occurs:

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the exception
  • AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer code of the exception
  • AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A text description of the exception

Response Lenses

getMediaForFragmentListResponse_payload :: Lens' GetMediaForFragmentListResponse ResponseBody Source #

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

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - Fragment number returned in the chunk.
  • AWS_KINESISVIDEO_SERVER_SIDE_TIMESTAMP - Server-side timestamp of the fragment.
  • AWS_KINESISVIDEO_PRODUCER_SIDE_TIMESTAMP - Producer-side timestamp of the fragment.

The following tags will be included if an exception occurs:

  • AWS_KINESISVIDEO_FRAGMENT_NUMBER - The number of the fragment that threw the exception
  • AWS_KINESISVIDEO_EXCEPTION_ERROR_CODE - The integer code of the exception
  • AWS_KINESISVIDEO_EXCEPTION_MESSAGE - A text description of the exception