amazonka-dynamodb-streams-2.0: Amazon DynamoDB Streams 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.DynamoDBStreams.Types

Description

 
Synopsis

Service Configuration

defaultService :: Service Source #

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

Errors

_ExpiredIteratorException :: AsError a => Fold a ServiceError Source #

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 => Fold a ServiceError Source #

An error occurred on the server side.

_LimitExceededException :: AsError a => Fold a ServiceError Source #

There is no limit to the number of daily on-demand backups that can be taken.

For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, and RestoreTableToPointInTime.

When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.

When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.

There is a soft account quota of 2,500 tables.

_ResourceNotFoundException :: AsError a => Fold a ServiceError Source #

The operation tried to access a nonexistent table or index. The resource might not be specified correctly, or its status might not be ACTIVE.

_TrimmedDataAccessException :: AsError a => Fold a ServiceError Source #

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.

Re-exported Types

KeyType

newtype KeyType Source #

Constructors

KeyType' 

Fields

Bundled Patterns

pattern KeyType_HASH :: KeyType 
pattern KeyType_RANGE :: KeyType 

Instances

Instances details
FromJSON KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

FromJSONKey KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToJSON KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToJSONKey KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToByteString KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

toBS :: KeyType -> ByteString #

ToHeader KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

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

ToLog KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToQuery KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

FromText KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToText KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

toText :: KeyType -> Text #

FromXML KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

ToXML KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

toXML :: KeyType -> XML #

Generic KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Associated Types

type Rep KeyType :: Type -> Type #

Methods

from :: KeyType -> Rep KeyType x #

to :: Rep KeyType x -> KeyType #

Read KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Show KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

NFData KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

rnf :: KeyType -> () #

Eq KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

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

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

Ord KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Hashable KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

Methods

hashWithSalt :: Int -> KeyType -> Int #

hash :: KeyType -> Int #

type Rep KeyType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeyType

type Rep KeyType = D1 ('MetaData "KeyType" "Amazonka.DynamoDBStreams.Types.KeyType" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'True) (C1 ('MetaCons "KeyType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromKeyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

OperationType

newtype OperationType Source #

Constructors

OperationType' 

Instances

Instances details
FromJSON OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

FromJSONKey OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToJSON OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToJSONKey OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToByteString OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToHeader OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToLog OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToQuery OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

FromText OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToText OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Methods

toText :: OperationType -> Text #

FromXML OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

ToXML OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Methods

toXML :: OperationType -> XML #

Generic OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Associated Types

type Rep OperationType :: Type -> Type #

Read OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Show OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

NFData OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Methods

rnf :: OperationType -> () #

Eq OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Ord OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

Hashable OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

type Rep OperationType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.OperationType

type Rep OperationType = D1 ('MetaData "OperationType" "Amazonka.DynamoDBStreams.Types.OperationType" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'True) (C1 ('MetaCons "OperationType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromOperationType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ShardIteratorType

newtype ShardIteratorType Source #

Instances

Instances details
FromJSON ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

FromJSONKey ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToJSON ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToJSONKey ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToByteString ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToHeader ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToLog ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToQuery ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

FromText ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToText ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

FromXML ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

ToXML ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Generic ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Associated Types

type Rep ShardIteratorType :: Type -> Type #

Read ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Show ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

NFData ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Methods

rnf :: ShardIteratorType -> () #

Eq ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Ord ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

Hashable ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

type Rep ShardIteratorType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.ShardIteratorType

type Rep ShardIteratorType = D1 ('MetaData "ShardIteratorType" "Amazonka.DynamoDBStreams.Types.ShardIteratorType" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'True) (C1 ('MetaCons "ShardIteratorType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromShardIteratorType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StreamStatus

newtype StreamStatus Source #

Constructors

StreamStatus' 

Instances

Instances details
FromJSON StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

FromJSONKey StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToJSON StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToJSONKey StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToByteString StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToHeader StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToLog StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToQuery StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

FromText StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToText StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Methods

toText :: StreamStatus -> Text #

FromXML StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

ToXML StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Methods

toXML :: StreamStatus -> XML #

Generic StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Associated Types

type Rep StreamStatus :: Type -> Type #

Read StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Show StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

NFData StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Methods

rnf :: StreamStatus -> () #

Eq StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Ord StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

Hashable StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

type Rep StreamStatus Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamStatus

type Rep StreamStatus = D1 ('MetaData "StreamStatus" "Amazonka.DynamoDBStreams.Types.StreamStatus" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'True) (C1 ('MetaCons "StreamStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStreamStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

StreamViewType

newtype StreamViewType Source #

Constructors

StreamViewType' 

Instances

Instances details
FromJSON StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

FromJSONKey StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToJSON StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToJSONKey StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToByteString StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToHeader StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToLog StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToQuery StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

FromText StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToText StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

FromXML StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

ToXML StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Methods

toXML :: StreamViewType -> XML #

Generic StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Associated Types

type Rep StreamViewType :: Type -> Type #

Read StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Show StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

NFData StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Methods

rnf :: StreamViewType -> () #

Eq StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Ord StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

Hashable StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

type Rep StreamViewType Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamViewType

type Rep StreamViewType = D1 ('MetaData "StreamViewType" "Amazonka.DynamoDBStreams.Types.StreamViewType" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'True) (C1 ('MetaCons "StreamViewType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromStreamViewType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

Identity

data Identity Source #

Contains details about the type of identity that made the request.

See: newIdentity smart constructor.

Constructors

Identity' 

Fields

  • principalId :: Maybe Text

    A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".

  • type' :: Maybe Text

    The type of the identity. For Time To Live, the type is "Service".

Instances

Instances details
FromJSON Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Generic Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Associated Types

type Rep Identity :: Type -> Type #

Methods

from :: Identity -> Rep Identity x #

to :: Rep Identity x -> Identity #

Read Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Show Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

NFData Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Methods

rnf :: Identity -> () #

Eq Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Hashable Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

Methods

hashWithSalt :: Int -> Identity -> Int #

hash :: Identity -> Int #

type Rep Identity Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Identity

type Rep Identity = D1 ('MetaData "Identity" "Amazonka.DynamoDBStreams.Types.Identity" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'False) (C1 ('MetaCons "Identity'" 'PrefixI 'True) (S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "type'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newIdentity :: Identity Source #

Create a value of Identity 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:principalId:Identity', identity_principalId - A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".

$sel:type':Identity', identity_type - The type of the identity. For Time To Live, the type is "Service".

identity_principalId :: Lens' Identity (Maybe Text) Source #

A unique identifier for the entity that made the call. For Time To Live, the principalId is "dynamodb.amazonaws.com".

identity_type :: Lens' Identity (Maybe Text) Source #

The type of the identity. For Time To Live, the type is "Service".

KeySchemaElement

data KeySchemaElement Source #

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 would be represented by one KeySchemaElement (for the partition key). A composite primary key would require one KeySchemaElement for the partition key, and another KeySchemaElement for the sort key.

A KeySchemaElement must be a scalar, top-level attribute (not a nested attribute). The data type must be one of String, Number, or Binary. The attribute cannot be nested within a List or a Map.

See: newKeySchemaElement smart constructor.

Constructors

KeySchemaElement' 

Fields

  • attributeName :: Text

    The name of a key attribute.

  • keyType :: KeyType

    The role that this key attribute will assume:

    • HASH - partition key
    • RANGE - sort key

    The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

    The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

Instances

Instances details
FromJSON KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

Generic KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

Associated Types

type Rep KeySchemaElement :: Type -> Type #

Read KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

Show KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

NFData KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

Methods

rnf :: KeySchemaElement -> () #

Eq KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

Hashable KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

type Rep KeySchemaElement Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.KeySchemaElement

type Rep KeySchemaElement = D1 ('MetaData "KeySchemaElement" "Amazonka.DynamoDBStreams.Types.KeySchemaElement" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'False) (C1 ('MetaCons "KeySchemaElement'" 'PrefixI 'True) (S1 ('MetaSel ('Just "attributeName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "keyType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 KeyType)))

newKeySchemaElement Source #

Create a value of KeySchemaElement 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:attributeName:KeySchemaElement', keySchemaElement_attributeName - The name of a key attribute.

$sel:keyType:KeySchemaElement', keySchemaElement_keyType - The role that this key attribute will assume:

  • HASH - partition key
  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

keySchemaElement_keyType :: Lens' KeySchemaElement KeyType Source #

The role that this key attribute will assume:

  • HASH - partition key
  • RANGE - sort key

The partition key of an item is also known as its hash attribute. The term "hash attribute" derives from DynamoDB's usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.

The sort key of an item is also known as its range attribute. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.

Record

data Record Source #

A description of a unique event within a stream.

See: newRecord smart constructor.

Constructors

Record' 

Fields

  • awsRegion :: Maybe Text

    The region in which the GetRecords request was received.

  • dynamodb :: Maybe StreamRecord

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

  • eventID :: Maybe Text

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

  • eventName :: 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
  • eventSource :: Maybe Text

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

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

  • userIdentity :: Maybe Identity

    Items that are deleted by the Time to Live process after expiration have the following fields:

    • Records[].userIdentity.type

      "Service"

    • Records[].userIdentity.principalId

      "dynamodb.amazonaws.com"

Instances

Instances details
FromJSON Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Generic Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Associated Types

type Rep Record :: Type -> Type #

Methods

from :: Record -> Rep Record x #

to :: Rep Record x -> Record #

Read Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Show Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

NFData Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Methods

rnf :: Record -> () #

Eq Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Methods

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

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

Hashable Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

Methods

hashWithSalt :: Int -> Record -> Int #

hash :: Record -> Int #

type Rep Record Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Record

newRecord :: Record Source #

Create a value of Record 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:awsRegion:Record', record_awsRegion - The region in which the GetRecords request was received.

$sel:dynamodb:Record', record_dynamodb - The main body of the stream record, containing all of the DynamoDB-specific fields.

$sel:eventID:Record', record_eventID - A globally unique identifier for the event that was recorded in this stream record.

$sel:eventName:Record', record_eventName - 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

$sel:eventSource:Record', record_eventSource - The AWS service from which the stream record originated. For DynamoDB Streams, this is aws:dynamodb.

$sel:eventVersion:Record', record_eventVersion - 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.

$sel:userIdentity:Record', record_userIdentity - Items that are deleted by the Time to Live process after expiration have the following fields:

  • Records[].userIdentity.type

    "Service"

  • Records[].userIdentity.principalId

    "dynamodb.amazonaws.com"

record_awsRegion :: Lens' Record (Maybe Text) Source #

The region in which the GetRecords request was received.

record_dynamodb :: Lens' Record (Maybe StreamRecord) Source #

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

record_eventID :: Lens' Record (Maybe Text) Source #

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

record_eventName :: Lens' Record (Maybe OperationType) Source #

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

record_eventSource :: Lens' Record (Maybe Text) Source #

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

record_eventVersion :: Lens' Record (Maybe Text) Source #

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.

record_userIdentity :: Lens' Record (Maybe Identity) Source #

Items that are deleted by the Time to Live process after expiration have the following fields:

  • Records[].userIdentity.type

    "Service"

  • Records[].userIdentity.principalId

    "dynamodb.amazonaws.com"

SequenceNumberRange

data SequenceNumberRange Source #

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

See: newSequenceNumberRange smart constructor.

Constructors

SequenceNumberRange' 

Fields

Instances

Instances details
FromJSON SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

Generic SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

Associated Types

type Rep SequenceNumberRange :: Type -> Type #

Read SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

Show SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

NFData SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

Methods

rnf :: SequenceNumberRange -> () #

Eq SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

Hashable SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

type Rep SequenceNumberRange Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.SequenceNumberRange

type Rep SequenceNumberRange = D1 ('MetaData "SequenceNumberRange" "Amazonka.DynamoDBStreams.Types.SequenceNumberRange" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'False) (C1 ('MetaCons "SequenceNumberRange'" 'PrefixI 'True) (S1 ('MetaSel ('Just "endingSequenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "startingSequenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newSequenceNumberRange :: SequenceNumberRange Source #

Create a value of SequenceNumberRange 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:endingSequenceNumber:SequenceNumberRange', sequenceNumberRange_endingSequenceNumber - The last sequence number for the stream records contained within a shard. String contains numeric characters only.

$sel:startingSequenceNumber:SequenceNumberRange', sequenceNumberRange_startingSequenceNumber - The first sequence number for the stream records contained within a shard. String contains numeric characters only.

sequenceNumberRange_endingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text) Source #

The last sequence number for the stream records contained within a shard. String contains numeric characters only.

sequenceNumberRange_startingSequenceNumber :: Lens' SequenceNumberRange (Maybe Text) Source #

The first sequence number for the stream records contained within a shard. String contains numeric characters only.

Shard

data Shard Source #

A uniquely identified group of stream records within a stream.

See: newShard smart constructor.

Constructors

Shard' 

Fields

Instances

Instances details
FromJSON Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Generic Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Associated Types

type Rep Shard :: Type -> Type #

Methods

from :: Shard -> Rep Shard x #

to :: Rep Shard x -> Shard #

Read Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Show Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Methods

showsPrec :: Int -> Shard -> ShowS #

show :: Shard -> String #

showList :: [Shard] -> ShowS #

NFData Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Methods

rnf :: Shard -> () #

Eq Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Methods

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

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

Hashable Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

Methods

hashWithSalt :: Int -> Shard -> Int #

hash :: Shard -> Int #

type Rep Shard Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Shard

type Rep Shard = D1 ('MetaData "Shard" "Amazonka.DynamoDBStreams.Types.Shard" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'False) (C1 ('MetaCons "Shard'" 'PrefixI 'True) (S1 ('MetaSel ('Just "parentShardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "sequenceNumberRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SequenceNumberRange)) :*: S1 ('MetaSel ('Just "shardId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newShard :: Shard Source #

Create a value of Shard 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:parentShardId:Shard', shard_parentShardId - The shard ID of the current shard's parent.

$sel:sequenceNumberRange:Shard', shard_sequenceNumberRange - The range of possible sequence numbers for the shard.

$sel:shardId:Shard', shard_shardId - The system-generated identifier for this shard.

shard_parentShardId :: Lens' Shard (Maybe Text) Source #

The shard ID of the current shard's parent.

shard_sequenceNumberRange :: Lens' Shard (Maybe SequenceNumberRange) Source #

The range of possible sequence numbers for the shard.

shard_shardId :: Lens' Shard (Maybe Text) Source #

The system-generated identifier for this shard.

Stream

data Stream Source #

Represents all of the data describing a particular stream.

See: newStream smart constructor.

Constructors

Stream' 

Fields

  • streamArn :: Maybe Text

    The Amazon Resource Name (ARN) for the stream.

  • streamLabel :: 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
  • tableName :: Maybe Text

    The DynamoDB table with which the stream is associated.

Instances

Instances details
FromJSON Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Generic Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Associated Types

type Rep Stream :: Type -> Type #

Methods

from :: Stream -> Rep Stream x #

to :: Rep Stream x -> Stream #

Read Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Show Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

NFData Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Methods

rnf :: Stream -> () #

Eq Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Methods

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

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

Hashable Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

Methods

hashWithSalt :: Int -> Stream -> Int #

hash :: Stream -> Int #

type Rep Stream Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.Stream

type Rep Stream = D1 ('MetaData "Stream" "Amazonka.DynamoDBStreams.Types.Stream" "amazonka-dynamodb-streams-2.0-3efN0DbUklbJSr9bxtKOG6" 'False) (C1 ('MetaCons "Stream'" 'PrefixI 'True) (S1 ('MetaSel ('Just "streamArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "streamLabel") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tableName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newStream :: Stream Source #

Create a value of Stream 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:streamArn:Stream', stream_streamArn - The Amazon Resource Name (ARN) for the stream.

$sel:streamLabel:Stream', stream_streamLabel - 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

$sel:tableName:Stream', stream_tableName - The DynamoDB table with which the stream is associated.

stream_streamArn :: Lens' Stream (Maybe Text) Source #

The Amazon Resource Name (ARN) for the stream.

stream_streamLabel :: Lens' Stream (Maybe Text) Source #

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

stream_tableName :: Lens' Stream (Maybe Text) Source #

The DynamoDB table with which the stream is associated.

StreamDescription

data StreamDescription Source #

Represents all of the data describing a particular stream.

See: newStreamDescription smart constructor.

Constructors

StreamDescription' 

Fields

  • creationRequestDateTime :: Maybe POSIX

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

  • keySchema :: Maybe (NonEmpty KeySchemaElement)

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

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

  • shards :: Maybe [Shard]

    The shards that comprise the stream.

  • streamArn :: Maybe Text

    The Amazon Resource Name (ARN) for the stream.

  • streamLabel :: 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
  • streamStatus :: 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.
  • streamViewType :: 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.
  • tableName :: Maybe Text

    The DynamoDB table with which the stream is associated.

Instances

Instances details
FromJSON StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

Generic StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

Associated Types

type Rep StreamDescription :: Type -> Type #

Read StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

Show StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

NFData StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

Methods

rnf :: StreamDescription -> () #

Eq StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

Hashable StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

type Rep StreamDescription Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamDescription

newStreamDescription :: StreamDescription Source #

Create a value of StreamDescription 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:creationRequestDateTime:StreamDescription', streamDescription_creationRequestDateTime - The date and time when the request to create this stream was issued.

$sel:keySchema:StreamDescription', streamDescription_keySchema - The key attribute(s) of the stream's DynamoDB table.

$sel:lastEvaluatedShardId:StreamDescription', streamDescription_lastEvaluatedShardId - 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.

$sel:shards:StreamDescription', streamDescription_shards - The shards that comprise the stream.

$sel:streamArn:StreamDescription', streamDescription_streamArn - The Amazon Resource Name (ARN) for the stream.

$sel:streamLabel:StreamDescription', streamDescription_streamLabel - 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

$sel:streamStatus:StreamDescription', streamDescription_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.

$sel:streamViewType:StreamDescription', streamDescription_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.

$sel:tableName:StreamDescription', streamDescription_tableName - The DynamoDB table with which the stream is associated.

streamDescription_creationRequestDateTime :: Lens' StreamDescription (Maybe UTCTime) Source #

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

streamDescription_keySchema :: Lens' StreamDescription (Maybe (NonEmpty KeySchemaElement)) Source #

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

streamDescription_lastEvaluatedShardId :: Lens' StreamDescription (Maybe Text) Source #

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.

streamDescription_shards :: Lens' StreamDescription (Maybe [Shard]) Source #

The shards that comprise the stream.

streamDescription_streamArn :: Lens' StreamDescription (Maybe Text) Source #

The Amazon Resource Name (ARN) for the stream.

streamDescription_streamLabel :: Lens' StreamDescription (Maybe Text) Source #

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

streamDescription_streamStatus :: Lens' StreamDescription (Maybe StreamStatus) Source #

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.

streamDescription_streamViewType :: Lens' StreamDescription (Maybe StreamViewType) Source #

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.

streamDescription_tableName :: Lens' StreamDescription (Maybe Text) Source #

The DynamoDB table with which the stream is associated.

StreamRecord

data StreamRecord Source #

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

See: newStreamRecord smart constructor.

Constructors

StreamRecord' 

Fields

Instances

Instances details
FromJSON StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Generic StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Associated Types

type Rep StreamRecord :: Type -> Type #

Read StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Show StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

NFData StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Methods

rnf :: StreamRecord -> () #

Eq StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Hashable StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

type Rep StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

newStreamRecord :: StreamRecord Source #

Create a value of StreamRecord 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:approximateCreationDateTime:StreamRecord', streamRecord_approximateCreationDateTime - The approximate date and time when the stream record was created, in UNIX epoch time format.

$sel:keys:StreamRecord', streamRecord_keys - The primary key attribute(s) for the DynamoDB item that was modified.

$sel:newImage':StreamRecord', streamRecord_newImage - The item in the DynamoDB table as it appeared after it was modified.

$sel:oldImage:StreamRecord', streamRecord_oldImage - The item in the DynamoDB table as it appeared before it was modified.

$sel:sequenceNumber:StreamRecord', streamRecord_sequenceNumber - The sequence number of the stream record.

$sel:sizeBytes:StreamRecord', streamRecord_sizeBytes - The size of the stream record, in bytes.

$sel:streamViewType:StreamRecord', streamRecord_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.

streamRecord_approximateCreationDateTime :: Lens' StreamRecord (Maybe UTCTime) Source #

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

streamRecord_keys :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #

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

streamRecord_newImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #

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

streamRecord_oldImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #

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

streamRecord_sequenceNumber :: Lens' StreamRecord (Maybe Text) Source #

The sequence number of the stream record.

streamRecord_sizeBytes :: Lens' StreamRecord (Maybe Natural) Source #

The size of the stream record, in bytes.

streamRecord_streamViewType :: Lens' StreamRecord (Maybe StreamViewType) Source #

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.