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

Description

 
Synopsis

Documentation

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.