amazonka-dynamodb-streams-1.4.5: 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.Types

Contents

Description

 

Synopsis

Service Configuration

dynamoDBStreams :: Service #

API version 2012-08-10 of the Amazon DynamoDB Streams SDK configuration.

Errors

_ExpiredIteratorException :: AsError a => Getting (First ServiceError) a ServiceError #

The shard iterator has expired and can no longer be used to retrieve stream records. A shard iterator expires 15 minutes after it is retrieved using the GetShardIterator action.

_InternalServerError :: AsError a => Getting (First ServiceError) a ServiceError #

An error occurred on the server side.

_TrimmedDataAccessException :: AsError a => Getting (First ServiceError) a ServiceError #

The operation attempted to read past the oldest stream record in a 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. You might receive a TrimmedDataAccessException if:

  • You request a shard iterator with a sequence number older than the trim point (24 hours).
  • You obtain a shard iterator, but before you use the iterator in a GetRecords request, a stream record in the shard exceeds the 24 hour period and is trimmed. This causes the iterator to access a record that no longer exists.

_ResourceNotFoundException :: AsError a => Getting (First ServiceError) a ServiceError #

The operation tried to access a nonexistent stream.

_LimitExceededException :: AsError a => Getting (First ServiceError) a ServiceError #

Your request rate is too high. The AWS SDKs for DynamoDB automatically retry requests that receive this exception. Your request is eventually successful, unless your retry queue is too large to finish. Reduce the frequency of requests and use exponential backoff. For more information, go to Error Retries and Exponential Backoff in the Amazon DynamoDB Developer Guide .

KeyType

data KeyType #

Constructors

Hash 
Range 

Instances

Bounded KeyType # 
Enum KeyType # 
Eq KeyType # 

Methods

(==) :: KeyType -> KeyType -> Bool #

(/=) :: KeyType -> KeyType -> Bool #

Data KeyType # 

Methods

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

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

toConstr :: KeyType -> Constr #

dataTypeOf :: KeyType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord KeyType # 
Read KeyType # 
Show KeyType # 
Generic KeyType # 

Associated Types

type Rep KeyType :: * -> * #

Methods

from :: KeyType -> Rep KeyType x #

to :: Rep KeyType x -> KeyType #

Hashable KeyType # 

Methods

hashWithSalt :: Int -> KeyType -> Int #

hash :: KeyType -> Int #

FromJSON KeyType # 
NFData KeyType # 

Methods

rnf :: KeyType -> () #

ToQuery KeyType # 
ToHeader KeyType # 

Methods

toHeader :: HeaderName -> KeyType -> [Header] #

ToByteString KeyType # 

Methods

toBS :: KeyType -> ByteString #

FromText KeyType # 
ToText KeyType # 

Methods

toText :: KeyType -> Text #

type Rep KeyType # 
type Rep KeyType = D1 (MetaData "KeyType" "Network.AWS.DynamoDBStreams.Types.Sum" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) ((:+:) (C1 (MetaCons "Hash" PrefixI False) U1) (C1 (MetaCons "Range" PrefixI False) U1))

OperationType

data OperationType #

Constructors

Insert 
Modify 
Remove 

Instances

Bounded OperationType # 
Enum OperationType # 
Eq OperationType # 
Data OperationType # 

Methods

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

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

toConstr :: OperationType -> Constr #

dataTypeOf :: OperationType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord OperationType # 
Read OperationType # 
Show OperationType # 
Generic OperationType # 

Associated Types

type Rep OperationType :: * -> * #

Hashable OperationType # 
FromJSON OperationType # 
NFData OperationType # 

Methods

rnf :: OperationType -> () #

ToQuery OperationType # 
ToHeader OperationType # 
ToByteString OperationType # 
FromText OperationType # 
ToText OperationType # 

Methods

toText :: OperationType -> Text #

type Rep OperationType # 
type Rep OperationType = D1 (MetaData "OperationType" "Network.AWS.DynamoDBStreams.Types.Sum" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) ((:+:) (C1 (MetaCons "Insert" PrefixI False) U1) ((:+:) (C1 (MetaCons "Modify" PrefixI False) U1) (C1 (MetaCons "Remove" PrefixI False) U1)))

ShardIteratorType

data ShardIteratorType #

Instances

Bounded ShardIteratorType # 
Enum ShardIteratorType # 
Eq ShardIteratorType # 
Data ShardIteratorType # 

Methods

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

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

toConstr :: ShardIteratorType -> Constr #

dataTypeOf :: ShardIteratorType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord ShardIteratorType # 
Read ShardIteratorType # 
Show ShardIteratorType # 
Generic ShardIteratorType # 
Hashable ShardIteratorType # 
ToJSON ShardIteratorType # 
NFData ShardIteratorType # 

Methods

rnf :: ShardIteratorType -> () #

ToQuery ShardIteratorType # 
ToHeader ShardIteratorType # 
ToByteString ShardIteratorType # 
FromText ShardIteratorType # 
ToText ShardIteratorType # 
type Rep ShardIteratorType # 
type Rep ShardIteratorType = D1 (MetaData "ShardIteratorType" "Network.AWS.DynamoDBStreams.Types.Sum" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) ((:+:) ((:+:) (C1 (MetaCons "AfterSequenceNumber" PrefixI False) U1) (C1 (MetaCons "AtSequenceNumber" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Latest" PrefixI False) U1) (C1 (MetaCons "TrimHorizon" PrefixI False) U1)))

StreamStatus

data StreamStatus #

Instances

Bounded StreamStatus # 
Enum StreamStatus # 
Eq StreamStatus # 
Data StreamStatus # 

Methods

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

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

toConstr :: StreamStatus -> Constr #

dataTypeOf :: StreamStatus -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord StreamStatus # 
Read StreamStatus # 
Show StreamStatus # 
Generic StreamStatus # 

Associated Types

type Rep StreamStatus :: * -> * #

Hashable StreamStatus # 
FromJSON StreamStatus # 
NFData StreamStatus # 

Methods

rnf :: StreamStatus -> () #

ToQuery StreamStatus # 
ToHeader StreamStatus # 
ToByteString StreamStatus # 
FromText StreamStatus # 
ToText StreamStatus # 

Methods

toText :: StreamStatus -> Text #

type Rep StreamStatus # 
type Rep StreamStatus = D1 (MetaData "StreamStatus" "Network.AWS.DynamoDBStreams.Types.Sum" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) ((:+:) ((:+:) (C1 (MetaCons "Disabled" PrefixI False) U1) (C1 (MetaCons "Disabling" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Enabled" PrefixI False) U1) (C1 (MetaCons "Enabling" PrefixI False) U1)))

StreamViewType

data StreamViewType #

Instances

Bounded StreamViewType # 
Enum StreamViewType # 
Eq StreamViewType # 
Data StreamViewType # 

Methods

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

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

toConstr :: StreamViewType -> Constr #

dataTypeOf :: StreamViewType -> DataType #

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

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

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

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

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

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

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

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

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

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

Ord StreamViewType # 
Read StreamViewType # 
Show StreamViewType # 
Generic StreamViewType # 

Associated Types

type Rep StreamViewType :: * -> * #

Hashable StreamViewType # 
FromJSON StreamViewType # 
NFData StreamViewType # 

Methods

rnf :: StreamViewType -> () #

ToQuery StreamViewType # 
ToHeader StreamViewType # 
ToByteString StreamViewType # 
FromText StreamViewType # 
ToText StreamViewType # 
type Rep StreamViewType # 
type Rep StreamViewType = D1 (MetaData "StreamViewType" "Network.AWS.DynamoDBStreams.Types.Sum" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) ((:+:) ((:+:) (C1 (MetaCons "KeysOnly" PrefixI False) U1) (C1 (MetaCons "NewAndOldImages" PrefixI False) U1)) ((:+:) (C1 (MetaCons "NewImage" PrefixI False) U1) (C1 (MetaCons "OldImage" PrefixI False) U1)))

AttributeValue

data AttributeValue #

Represents the data for an attribute. You can set one, and only one, of the elements.

Each attribute in an item is a name-value pair. An attribute can be single-valued or multi-valued set. For example, a book item can have title and authors attributes. Each book has one title but can have many authors. The multi-valued attribute is a set; duplicate values are not allowed.

See: attributeValue smart constructor.

Instances

Eq AttributeValue # 
Data AttributeValue # 

Methods

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

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

toConstr :: AttributeValue -> Constr #

dataTypeOf :: AttributeValue -> DataType #

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

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

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

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

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

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

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

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

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

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

Read AttributeValue # 
Show AttributeValue # 
Generic AttributeValue # 

Associated Types

type Rep AttributeValue :: * -> * #

Hashable AttributeValue # 
FromJSON AttributeValue # 
NFData AttributeValue # 

Methods

rnf :: AttributeValue -> () #

type Rep AttributeValue # 

attributeValue :: AttributeValue #

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

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

  • avL - A List data type.
  • avNS - A Number Set data type.
  • avM - A Map data type.
  • avNULL - A Null data type.
  • avN - A Number data type.
  • avBS - A Binary Set data type.
  • avB - A Binary data type.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.
  • avSS - A String Set data type.
  • avS - A String data type.
  • avBOOL - A Boolean data type.

avL :: Lens' AttributeValue [AttributeValue] #

A List data type.

avNS :: Lens' AttributeValue [Text] #

A Number Set data type.

avNULL :: Lens' AttributeValue (Maybe Bool) #

A Null data type.

avN :: Lens' AttributeValue (Maybe Text) #

A Number data type.

avBS :: Lens' AttributeValue [ByteString] #

A Binary Set data type.

avB :: Lens' AttributeValue (Maybe ByteString) #

A Binary data type.-- Note: This Lens automatically encodes and decodes Base64 data. The underlying isomorphism will encode to Base64 representation during serialisation, and decode from Base64 representation during deserialisation. This Lens accepts and returns only raw unencoded data.

avSS :: Lens' AttributeValue [Text] #

A String Set data type.

avS :: Lens' AttributeValue (Maybe Text) #

A String data type.

avBOOL :: Lens' AttributeValue (Maybe Bool) #

A Boolean data type.

KeySchemaElement

data KeySchemaElement #

Represents a single element of a key schema. A key schema specifies the attributes that make up the primary key of a table, or the key attributes of an index.

A KeySchemaElement represents exactly one attribute of the primary key. For example, a simple primary key (partition key) would be represented by one KeySchemaElement . A composite primary key (partition key and sort key) would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

See: keySchemaElement smart constructor.

Instances

Eq KeySchemaElement # 
Data KeySchemaElement # 

Methods

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

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

toConstr :: KeySchemaElement -> Constr #

dataTypeOf :: KeySchemaElement -> DataType #

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

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

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

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

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

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

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

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

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

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

Read KeySchemaElement # 
Show KeySchemaElement # 
Generic KeySchemaElement # 
Hashable KeySchemaElement # 
FromJSON KeySchemaElement # 
NFData KeySchemaElement # 

Methods

rnf :: KeySchemaElement -> () #

type Rep KeySchemaElement # 
type Rep KeySchemaElement = D1 (MetaData "KeySchemaElement" "Network.AWS.DynamoDBStreams.Types.Product" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) (C1 (MetaCons "KeySchemaElement'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_kseAttributeName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_kseKeyType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 KeyType))))

keySchemaElement #

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

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

  • kseAttributeName - The name of a key attribute.
  • kseKeyType - The attribute data, consisting of the data type and the attribute value itself.

kseAttributeName :: Lens' KeySchemaElement Text #

The name of a key attribute.

kseKeyType :: Lens' KeySchemaElement KeyType #

The attribute data, consisting of the data type and the attribute value itself.

Record

data Record #

A description of a unique event within a stream.

See: record smart constructor.

Instances

Eq Record # 

Methods

(==) :: Record -> Record -> Bool #

(/=) :: Record -> Record -> Bool #

Data Record # 

Methods

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

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

toConstr :: Record -> Constr #

dataTypeOf :: Record -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Record # 
Show Record # 
Generic Record # 

Associated Types

type Rep Record :: * -> * #

Methods

from :: Record -> Rep Record x #

to :: Rep Record x -> Record #

Hashable Record # 

Methods

hashWithSalt :: Int -> Record -> Int #

hash :: Record -> Int #

FromJSON Record # 
NFData Record # 

Methods

rnf :: Record -> () #

type Rep Record # 

record :: Record #

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

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

  • rEventVersion - The version number of the stream record format. This number is updated whenever the structure of Record is modified. Client applications must not assume that eventVersion will remain at a particular value, as this number is subject to change at any time. In general, eventVersion will only increase as the low-level DynamoDB Streams API evolves.
  • rDynamodb - The main body of the stream record, containing all of the DynamoDB-specific fields.
  • rAwsRegion - The region in which the GetRecords request was received.
  • rEventName - The type of data modification that was performed on the DynamoDB table: * INSERT - a new item was added to the table. * MODIFY - one or more of an existing item's attributes were modified. * REMOVE - the item was deleted from the table
  • rEventSource - The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb .
  • rEventId - A globally unique identifier for the event that was recorded in this stream record.

rEventVersion :: Lens' Record (Maybe Text) #

The version number of the stream record format. This number is updated whenever the structure of Record is modified. Client applications must not assume that eventVersion will remain at a particular value, as this number is subject to change at any time. In general, eventVersion will only increase as the low-level DynamoDB Streams API evolves.

rDynamodb :: Lens' Record (Maybe StreamRecord) #

The main body of the stream record, containing all of the DynamoDB-specific fields.

rAwsRegion :: Lens' Record (Maybe Text) #

The region in which the GetRecords request was received.

rEventName :: Lens' Record (Maybe OperationType) #

The type of data modification that was performed on the DynamoDB table: * INSERT - a new item was added to the table. * MODIFY - one or more of an existing item's attributes were modified. * REMOVE - the item was deleted from the table

rEventSource :: Lens' Record (Maybe Text) #

The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb .

rEventId :: Lens' Record (Maybe Text) #

A globally unique identifier for the event that was recorded in this stream record.

SequenceNumberRange

data SequenceNumberRange #

The beginning and ending sequence numbers for the stream records contained within a shard.

See: sequenceNumberRange smart constructor.

Instances

Eq SequenceNumberRange # 
Data SequenceNumberRange # 

Methods

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

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

toConstr :: SequenceNumberRange -> Constr #

dataTypeOf :: SequenceNumberRange -> DataType #

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

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

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

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

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

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

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

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

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

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

Read SequenceNumberRange # 
Show SequenceNumberRange # 
Generic SequenceNumberRange # 
Hashable SequenceNumberRange # 
FromJSON SequenceNumberRange # 
NFData SequenceNumberRange # 

Methods

rnf :: SequenceNumberRange -> () #

type Rep SequenceNumberRange # 
type Rep SequenceNumberRange = D1 (MetaData "SequenceNumberRange" "Network.AWS.DynamoDBStreams.Types.Product" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) (C1 (MetaCons "SequenceNumberRange'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_snrStartingSequenceNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_snrEndingSequenceNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

sequenceNumberRange :: SequenceNumberRange #

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

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

Shard

data Shard #

A uniquely identified group of stream records within a stream.

See: shard smart constructor.

Instances

Eq Shard # 

Methods

(==) :: Shard -> Shard -> Bool #

(/=) :: Shard -> Shard -> Bool #

Data Shard # 

Methods

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

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

toConstr :: Shard -> Constr #

dataTypeOf :: Shard -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Shard # 
Show Shard # 

Methods

showsPrec :: Int -> Shard -> ShowS #

show :: Shard -> String #

showList :: [Shard] -> ShowS #

Generic Shard # 

Associated Types

type Rep Shard :: * -> * #

Methods

from :: Shard -> Rep Shard x #

to :: Rep Shard x -> Shard #

Hashable Shard # 

Methods

hashWithSalt :: Int -> Shard -> Int #

hash :: Shard -> Int #

FromJSON Shard # 
NFData Shard # 

Methods

rnf :: Shard -> () #

type Rep Shard # 
type Rep Shard = D1 (MetaData "Shard" "Network.AWS.DynamoDBStreams.Types.Product" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) (C1 (MetaCons "Shard'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sParentShardId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sSequenceNumberRange") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SequenceNumberRange))) (S1 (MetaSel (Just Symbol "_sShardId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

shard :: Shard #

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

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

sParentShardId :: Lens' Shard (Maybe Text) #

The shard ID of the current shard's parent.

sSequenceNumberRange :: Lens' Shard (Maybe SequenceNumberRange) #

The range of possible sequence numbers for the shard.

sShardId :: Lens' Shard (Maybe Text) #

The system-generated identifier for this shard.

Stream

data Stream #

Represents all of the data describing a particular stream.

See: stream smart constructor.

Instances

Eq Stream # 

Methods

(==) :: Stream -> Stream -> Bool #

(/=) :: Stream -> Stream -> Bool #

Data Stream # 

Methods

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

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

toConstr :: Stream -> Constr #

dataTypeOf :: Stream -> DataType #

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

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

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

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

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

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

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

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

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

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

Read Stream # 
Show Stream # 
Generic Stream # 

Associated Types

type Rep Stream :: * -> * #

Methods

from :: Stream -> Rep Stream x #

to :: Rep Stream x -> Stream #

Hashable Stream # 

Methods

hashWithSalt :: Int -> Stream -> Int #

hash :: Stream -> Int #

FromJSON Stream # 
NFData Stream # 

Methods

rnf :: Stream -> () #

type Rep Stream # 
type Rep Stream = D1 (MetaData "Stream" "Network.AWS.DynamoDBStreams.Types.Product" "amazonka-dynamodb-streams-1.4.5-1JUgl1lmZkS649OJ57ZQdS" False) (C1 (MetaCons "Stream'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sStreamLabel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_sStreamARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sTableName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

stream :: Stream #

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

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

  • sStreamLabel - A timestamp, in ISO 8601 format, for this stream. Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: * the AWS customer ID. * the table name * the StreamLabel
  • sStreamARN - The Amazon Resource Name (ARN) for the stream.
  • sTableName - The DynamoDB table with which the stream is associated.

sStreamLabel :: Lens' Stream (Maybe Text) #

A timestamp, in ISO 8601 format, for this stream. Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: * the AWS customer ID. * the table name * the StreamLabel

sStreamARN :: Lens' Stream (Maybe Text) #

The Amazon Resource Name (ARN) for the stream.

sTableName :: Lens' Stream (Maybe Text) #

The DynamoDB table with which the stream is associated.

StreamDescription

data StreamDescription #

Represents all of the data describing a particular stream.

See: streamDescription smart constructor.

Instances

Eq StreamDescription # 
Data StreamDescription # 

Methods

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

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

toConstr :: StreamDescription -> Constr #

dataTypeOf :: StreamDescription -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StreamDescription # 
Show StreamDescription # 
Generic StreamDescription # 
Hashable StreamDescription # 
FromJSON StreamDescription # 
NFData StreamDescription # 

Methods

rnf :: StreamDescription -> () #

type Rep StreamDescription # 

streamDescription :: StreamDescription #

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

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

  • sdLastEvaluatedShardId - The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedShardId is empty, then the "last page" of results has been processed and there is currently no more data to be retrieved. If LastEvaluatedShardId is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedShardId is empty.
  • sdStreamLabel - A timestamp, in ISO 8601 format, for this stream. Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: * the AWS customer ID. * the table name * the StreamLabel
  • sdStreamStatus - Indicates the current status of the stream: * ENABLING - Streams is currently being enabled on the DynamoDB table. * ENABLED - the stream is enabled. * DISABLING - Streams is currently being disabled on the DynamoDB table. * DISABLED - the stream is disabled.
  • sdKeySchema - The key attribute(s) of the stream's DynamoDB table.
  • sdStreamViewType - Indicates the format of the records within this stream: * KEYS_ONLY - only the key attributes of items that were modified in the DynamoDB table. * NEW_IMAGE - entire items from the table, as they appeared after they were modified. * OLD_IMAGE - entire items from the table, as they appeared before they were modified. * NEW_AND_OLD_IMAGES - both the new and the old images of the items from the table.
  • sdStreamARN - The Amazon Resource Name (ARN) for the stream.
  • sdShards - The shards that comprise the stream.
  • sdTableName - The DynamoDB table with which the stream is associated.
  • sdCreationRequestDateTime - The date and time when the request to create this stream was issued.

sdLastEvaluatedShardId :: Lens' StreamDescription (Maybe Text) #

The shard ID of the item where the operation stopped, inclusive of the previous result set. Use this value to start a new operation, excluding this value in the new request. If LastEvaluatedShardId is empty, then the "last page" of results has been processed and there is currently no more data to be retrieved. If LastEvaluatedShardId is not empty, it does not necessarily mean that there is more data in the result set. The only way to know when you have reached the end of the result set is when LastEvaluatedShardId is empty.

sdStreamLabel :: Lens' StreamDescription (Maybe Text) #

A timestamp, in ISO 8601 format, for this stream. Note that LatestStreamLabel is not a unique identifier for the stream, because it is possible that a stream from another table might have the same timestamp. However, the combination of the following three elements is guaranteed to be unique: * the AWS customer ID. * the table name * the StreamLabel

sdStreamStatus :: Lens' StreamDescription (Maybe StreamStatus) #

Indicates the current status of the stream: * ENABLING - Streams is currently being enabled on the DynamoDB table. * ENABLED - the stream is enabled. * DISABLING - Streams is currently being disabled on the DynamoDB table. * DISABLED - the stream is disabled.

sdKeySchema :: Lens' StreamDescription (Maybe (NonEmpty KeySchemaElement)) #

The key attribute(s) of the stream's DynamoDB table.

sdStreamViewType :: Lens' StreamDescription (Maybe StreamViewType) #

Indicates the format of the records within this stream: * KEYS_ONLY - only the key attributes of items that were modified in the DynamoDB table. * NEW_IMAGE - entire items from the table, as they appeared after they were modified. * OLD_IMAGE - entire items from the table, as they appeared before they were modified. * NEW_AND_OLD_IMAGES - both the new and the old images of the items from the table.

sdStreamARN :: Lens' StreamDescription (Maybe Text) #

The Amazon Resource Name (ARN) for the stream.

sdShards :: Lens' StreamDescription [Shard] #

The shards that comprise the stream.

sdTableName :: Lens' StreamDescription (Maybe Text) #

The DynamoDB table with which the stream is associated.

sdCreationRequestDateTime :: Lens' StreamDescription (Maybe UTCTime) #

The date and time when the request to create this stream was issued.

StreamRecord

data StreamRecord #

A description of a single data modification that was performed on an item in a DynamoDB table.

See: streamRecord smart constructor.

Instances

Eq StreamRecord # 
Data StreamRecord # 

Methods

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

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

toConstr :: StreamRecord -> Constr #

dataTypeOf :: StreamRecord -> DataType #

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

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

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

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

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

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

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

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

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

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

Read StreamRecord # 
Show StreamRecord # 
Generic StreamRecord # 

Associated Types

type Rep StreamRecord :: * -> * #

Hashable StreamRecord # 
FromJSON StreamRecord # 
NFData StreamRecord # 

Methods

rnf :: StreamRecord -> () #

type Rep StreamRecord # 

streamRecord :: StreamRecord #

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

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

  • srSizeBytes - The size of the stream record, in bytes.
  • srSequenceNumber - The sequence number of the stream record.
  • srApproximateCreationDateTime - The approximate date and time when the stream record was created, in UNIX epoch time format.
  • srStreamViewType - The type of data from the modified DynamoDB item that was captured in this stream record: * KEYS_ONLY - only the key attributes of the modified item. * NEW_IMAGE - the entire item, as it appeared after it was modified. * OLD_IMAGE - the entire item, as it appeared before it was modified. * NEW_AND_OLD_IMAGES - both the new and the old item images of the item.
  • srKeys - The primary key attribute(s) for the DynamoDB item that was modified.
  • srOldImage - The item in the DynamoDB table as it appeared before it was modified.
  • srNewImage - The item in the DynamoDB table as it appeared after it was modified.

srSizeBytes :: Lens' StreamRecord (Maybe Natural) #

The size of the stream record, in bytes.

srSequenceNumber :: Lens' StreamRecord (Maybe Text) #

The sequence number of the stream record.

srApproximateCreationDateTime :: Lens' StreamRecord (Maybe UTCTime) #

The approximate date and time when the stream record was created, in UNIX epoch time format.

srStreamViewType :: Lens' StreamRecord (Maybe StreamViewType) #

The type of data from the modified DynamoDB item that was captured in this stream record: * KEYS_ONLY - only the key attributes of the modified item. * NEW_IMAGE - the entire item, as it appeared after it was modified. * OLD_IMAGE - the entire item, as it appeared before it was modified. * NEW_AND_OLD_IMAGES - both the new and the old item images of the item.

srKeys :: Lens' StreamRecord (HashMap Text AttributeValue) #

The primary key attribute(s) for the DynamoDB item that was modified.

srOldImage :: Lens' StreamRecord (HashMap Text AttributeValue) #

The item in the DynamoDB table as it appeared before it was modified.

srNewImage :: Lens' StreamRecord (HashMap Text AttributeValue) #

The item in the DynamoDB table as it appeared after it was modified.