amazonka-kinesis-video-archived-media-2.0: Amazon Kinesis Video Streams Archived Media SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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.

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

  • nextToken :: Maybe Text

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

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

  • streamName :: Maybe Text

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

Instances

Instances details
ToJSON ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.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

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 #

Generic ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Associated Types

type Rep ListFragments :: Type -> Type #

Read ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Show ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

NFData ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Methods

rnf :: ListFragments -> () #

Eq ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Hashable ListFragments Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

type AWSResponse 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" "amazonka-kinesis-video-archived-media-2.0-ByMPs2ZAQOi357CZJGqXlN" 'False) (C1 ('MetaCons "ListFragments'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "fragmentSelector") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FragmentSelector)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamARN") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "streamName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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

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

$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:streamName:ListFragments', listFragments_streamName - The name of the stream from which to retrieve a fragment list. Specify either this parameter or the StreamARN parameter.

Request Lenses

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

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

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.

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

Destructuring the Response

data ListFragmentsResponse Source #

See: newListFragmentsResponse smart constructor.

Constructors

ListFragmentsResponse' 

Fields

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

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

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Generic ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Associated Types

type Rep ListFragmentsResponse :: Type -> Type #

Read ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Show ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

NFData ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

Methods

rnf :: ListFragmentsResponse -> () #

Eq ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

type Rep ListFragmentsResponse Source # 
Instance details

Defined in Amazonka.KinesisVideoArchivedMedia.ListFragments

type Rep ListFragmentsResponse = D1 ('MetaData "ListFragmentsResponse" "Amazonka.KinesisVideoArchivedMedia.ListFragments" "amazonka-kinesis-video-archived-media-2.0-ByMPs2ZAQOi357CZJGqXlN" 'False) (C1 ('MetaCons "ListFragmentsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fragments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Fragment])) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: 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: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.

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:httpStatus:ListFragmentsResponse', listFragmentsResponse_httpStatus - The response's http status code.

Response Lenses

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.

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.