aws-dynamodb-streams-0.1.0.0: Haskell bindings for Amazon DynamoDB Streams

CopyrightCopyright (c) 2013-2014 PivotCloud, Inc.
LicenseApache-2.0
Safe HaskellNone
LanguageHaskell2010

Aws.DynamoDb.Streams.Types

Contents

Description

 

Synopsis

Sequence Numbers

Shards

data ShardId Source

Identifier for a shard.

Length constraints: 28 ≤ n ≤ 65.

data Shard Source

A uniquely identified group of stream records within a stream.

Constructors

Shard 

Fields

_shShardId :: !(Maybe ShardId)

The system-generated identifier for this shard

_shParentShardId :: !(Maybe ShardId)

The shard ID of this shard's parent

_shSequenceNumberRange :: !(Maybe SequenceNumberRange)

The range of possible sequence numbers for this shard

Lenses

shShardId :: Functor f => (Maybe ShardId -> f (Maybe ShardId)) -> Shard -> f Shard Source

A lens for _shShardId.

shshardId ∷ Lens' Shard (Maybe ShardId)

Shard Iterators

data ShardIterator 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.

Length constraints: 1 ≤ n ≤ 2048.

Prisms

Attribute Values

data AttributeValue Source

Represents the data for an attribute.

Constructors

AVBin !ByteString

Binary data will automatically be base64 marshalled

AVBool !Bool 
AVBinSet !(Set ByteString)

Binary data will automatically be base64 marshalled

AVList ![AttributeValue] 
AVMap !(Map Text AttributeValue) 
AVNum !Scientific 
AVNumSet !(Set Scientific) 
AVNull !Bool 
AVString !Text 
AVStringSet !(Set Text) 

Prisms

Key Schemas

Key Types

Prisms

_KeyTypeHash :: (Choice p, Applicative f) => p () (f ()) -> p KeyType (f KeyType) Source

A prism for KeyTypeHash.

_KeyTypeHash ∷ Prism' KeyType ()

_KeyTypeRange :: (Choice p, Applicative f) => p () (f ()) -> p KeyType (f KeyType) Source

A prism for KeyTypeRange.

_KeyTypeRange ∷ Prism' KeyType ()

Key Schema Elements

Lenses

Records

Stream View Types

data StreamViewType Source

Constructors

StreamViewKeysOnly

only the key attributes of the modified item

StreamViewNewImage

the entire item, as it appears after it was modified

StreamViewOldImage

the entire item, as it appeared before it was modified

StreamViewNewAndOldImages

both the new and the old images of the item

Prisms

Stream Records

Lenses

Event Names

Prisms

_EventInsert :: (Choice p, Applicative f) => p () (f ()) -> p EventName (f EventName) Source

A prism for EventInsert.

_EventInsert ∷ Prism' EventName ()

_EventModify :: (Choice p, Applicative f) => p () (f ()) -> p EventName (f EventName) Source

A prism for EventModify.

_EventModify ∷ Prism' EventName ()

_EventRemove :: (Choice p, Applicative f) => p () (f ()) -> p EventName (f EventName) Source

A prism for EventRemove.

_EventRemove ∷ Prism' EventName ()

Records

Lenses

rEventId :: Functor f => (Maybe EventId -> f (Maybe EventId)) -> Record -> f Record Source

A lens for _rEventId.

rEventId ∷ Lens' Record (Maybe EventId)

Stream Metadata

Stream Statuses

data StreamStatus Source

Constructors

StatusEnabling

DynamoDB Streams is currently being enabled on the table

StatusEnabled

The stream is enabled

StatusDisabling

DynamoDB Streams is currently being disabled on the table

StatusDisabled

The stream is disabled

_StatusEnabled :: (Choice p, Applicative f) => p () (f ()) -> p StreamStatus (f StreamStatus) Source

A prism for StatusEnabled.

_StatusEnabled ∷ Prism' StreamStatus ()

Stream Description

data StreamId Source

Identifier for a stream.

Length constraints: 56 ≤ n ≤ 128.

Lenses