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.ListFragments

Description

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

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

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

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.

This operation returns paginated results.

Synopsis

Creating a Request

data ListFragments Source #

See: newListFragments smart constructor.

Constructors

ListFragments' 

Fields

  • fragmentSelector :: Maybe FragmentSelector

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

  • streamARN :: Maybe Text

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

  • nextToken :: Maybe Text

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

  • streamName :: Maybe Text

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

  • maxResults :: Maybe Natural

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

Instances

Instances details
Eq ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Read ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Show ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Generic ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Associated Types

type Rep ListFragments :: Type -> Type #

NFData ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Methods

rnf :: ListFragments -> () #

Hashable ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

ToJSON ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

AWSPager ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

AWSRequest ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Associated Types

type AWSResponse ListFragments #

ToHeaders ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

ToPath ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

ToQuery ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

type Rep ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

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

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

newListFragments :: ListFragments Source #

Create a value of ListFragments 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:fragmentSelector:ListFragments', listFragments_fragmentSelector - Describes the timestamp range and timestamp origin for the range of fragments to return.

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

$sel:nextToken:ListFragments', listFragments_nextToken - A token to specify where to start paginating. This is the ListFragmentsOutput$NextToken from a previously truncated response.

$sel:streamName:ListFragments', listFragments_streamName - The name of the stream from which to retrieve a fragment list. Specify either this parameter or the StreamARN parameter.

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

Request Lenses

listFragments_fragmentSelector :: Lens' ListFragments (Maybe FragmentSelector) Source #

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

listFragments_streamARN :: Lens' ListFragments (Maybe Text) Source #

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

listFragments_nextToken :: Lens' ListFragments (Maybe Text) Source #

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

listFragments_streamName :: Lens' ListFragments (Maybe Text) Source #

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

listFragments_maxResults :: Lens' ListFragments (Maybe Natural) Source #

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

Destructuring the Response

data ListFragmentsResponse Source #

See: newListFragmentsResponse smart constructor.

Constructors

ListFragmentsResponse' 

Fields

  • nextToken :: Maybe Text

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

  • fragments :: Maybe [Fragment]

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Read ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Show ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Generic ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Associated Types

type Rep ListFragmentsResponse :: Type -> Type #

NFData ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Methods

rnf :: ListFragmentsResponse -> () #

type Rep ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

type Rep ListFragmentsResponse = D1 ('MetaData "ListFragmentsResponse" "Amazonka.KinesisVideoArchivedMedia.ListFragments" "libZSservicesZSamazonka-kinesis-video-archived-mediaZSamazonka-kinesis-video-archived-media" 'False) (C1 ('MetaCons "ListFragmentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "fragments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Fragment])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListFragmentsResponse Source #

Create a value of ListFragmentsResponse 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:nextToken:ListFragments', listFragmentsResponse_nextToken - If the returned list is truncated, the operation returns this token to use to retrieve the next page of results. This value is null when there are no more results to return.

$sel:fragments:ListFragmentsResponse', listFragmentsResponse_fragments - A list of archived Fragment objects from the stream that meet the selector criteria. Results are in no specific order, even across pages.

$sel:httpStatus:ListFragmentsResponse', listFragmentsResponse_httpStatus - The response's http status code.

Response Lenses

listFragmentsResponse_nextToken :: Lens' ListFragmentsResponse (Maybe Text) Source #

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

listFragmentsResponse_fragments :: Lens' ListFragmentsResponse (Maybe [Fragment]) Source #

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