amazonka-dynamodb-streams-1.4.4: Amazon DynamoDB Streams SDK.

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.DynamoDBStreams.GetShardIterator

Contents

Description

Returns a shard iterator. A shard iterator provides information about how to retrieve the stream records from within a shard. Use the shard iterator in a subsequent GetRecords request to read the stream records from the shard.

A shard iterator expires 15 minutes after it is returned to the requester.

Synopsis

Creating a Request

getShardIterator Source #

Creates a value of GetShardIterator with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetShardIterator Source #

Represents the input of a GetShardIterator operation.

See: getShardIterator smart constructor.

Instances

Eq GetShardIterator Source # 
Data GetShardIterator Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetShardIterator -> c GetShardIterator #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetShardIterator #

toConstr :: GetShardIterator -> Constr #

dataTypeOf :: GetShardIterator -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetShardIterator) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetShardIterator) #

gmapT :: (forall b. Data b => b -> b) -> GetShardIterator -> GetShardIterator #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetShardIterator -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetShardIterator -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetShardIterator -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetShardIterator -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetShardIterator -> m GetShardIterator #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetShardIterator -> m GetShardIterator #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetShardIterator -> m GetShardIterator #

Read GetShardIterator Source # 
Show GetShardIterator Source # 
Generic GetShardIterator Source # 
Hashable GetShardIterator Source # 
NFData GetShardIterator Source # 

Methods

rnf :: GetShardIterator -> () #

AWSRequest GetShardIterator Source # 
ToPath GetShardIterator Source # 
ToHeaders GetShardIterator Source # 
ToQuery GetShardIterator Source # 
ToJSON GetShardIterator Source # 
type Rep GetShardIterator Source # 
type Rep GetShardIterator = D1 (MetaData "GetShardIterator" "Network.AWS.DynamoDBStreams.GetShardIterator" "amazonka-dynamodb-streams-1.4.4-1rTW06t44jtKhT6USzdDPR" False) (C1 (MetaCons "GetShardIterator'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_gsiSequenceNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gsiStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gsiShardId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gsiShardIteratorType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 ShardIteratorType)))))
type Rs GetShardIterator Source # 

Request Lenses

gsiSequenceNumber :: Lens' GetShardIterator (Maybe Text) Source #

The sequence number of a stream record in the shard from which to start reading.

gsiStreamARN :: Lens' GetShardIterator Text Source #

The Amazon Resource Name (ARN) for the stream.

gsiShardId :: Lens' GetShardIterator Text Source #

The identifier of the shard. The iterator will be returned for this shard ID.

gsiShardIteratorType :: Lens' GetShardIterator ShardIteratorType Source #

Determines how the shard iterator is used to start reading stream records from the shard:

  • AT_SEQUENCE_NUMBER - Start reading exactly from the position denoted by a specific sequence number.
  • AFTER_SEQUENCE_NUMBER - Start reading right after the position denoted by a specific sequence number.
  • TRIM_HORIZON - Start reading at the last (untrimmed) stream record, which is the oldest record in the shard. In DynamoDB Streams, there is a 24 hour limit on data retention. Stream records whose age exceeds this limit are subject to removal (trimming) from the stream.
  • LATEST - Start reading just after the most recent stream record in the shard, so that you always read the most recent data in the shard.

Destructuring the Response

getShardIteratorResponse Source #

Creates a value of GetShardIteratorResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data GetShardIteratorResponse Source #

Represents the output of a GetShardIterator operation.

See: getShardIteratorResponse smart constructor.

Instances

Eq GetShardIteratorResponse Source # 
Data GetShardIteratorResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GetShardIteratorResponse -> c GetShardIteratorResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GetShardIteratorResponse #

toConstr :: GetShardIteratorResponse -> Constr #

dataTypeOf :: GetShardIteratorResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GetShardIteratorResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GetShardIteratorResponse) #

gmapT :: (forall b. Data b => b -> b) -> GetShardIteratorResponse -> GetShardIteratorResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GetShardIteratorResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GetShardIteratorResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> GetShardIteratorResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GetShardIteratorResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GetShardIteratorResponse -> m GetShardIteratorResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GetShardIteratorResponse -> m GetShardIteratorResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GetShardIteratorResponse -> m GetShardIteratorResponse #

Read GetShardIteratorResponse Source # 
Show GetShardIteratorResponse Source # 
Generic GetShardIteratorResponse Source # 
NFData GetShardIteratorResponse Source # 
type Rep GetShardIteratorResponse Source # 
type Rep GetShardIteratorResponse = D1 (MetaData "GetShardIteratorResponse" "Network.AWS.DynamoDBStreams.GetShardIterator" "amazonka-dynamodb-streams-1.4.4-1rTW06t44jtKhT6USzdDPR" False) (C1 (MetaCons "GetShardIteratorResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gsirsShardIterator") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_gsirsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

gsirsShardIterator :: Lens' GetShardIteratorResponse (Maybe Text) Source #

The position in the shard from which to start reading stream records sequentially. A shard iterator specifies this position using the sequence number of a stream record in a shard.