libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

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
Eq StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Read StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Show 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 #

NFData StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

Methods

rnf :: StreamRecord -> () #

Hashable StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

FromJSON StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

type Rep StreamRecord Source # 
Instance details

Defined in Amazonka.DynamoDBStreams.Types.StreamRecord

type Rep StreamRecord = D1 ('MetaData "StreamRecord" "Amazonka.DynamoDBStreams.Types.StreamRecord" "libZSservicesZSamazonka-dynamodb-streamsZSamazonka-dynamodb-streams" 'False) (C1 ('MetaCons "StreamRecord'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "sizeBytes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "sequenceNumber") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "approximateCreationDateTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: ((S1 ('MetaSel ('Just "streamViewType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe StreamViewType)) :*: S1 ('MetaSel ('Just "keys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text AttributeValue)))) :*: (S1 ('MetaSel ('Just "oldImage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text AttributeValue))) :*: S1 ('MetaSel ('Just "newImage'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text AttributeValue)))))))

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:sizeBytes:StreamRecord', streamRecord_sizeBytes - The size of the stream record, in bytes.

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

$sel:approximateCreationDateTime:StreamRecord', streamRecord_approximateCreationDateTime - The approximate date and time when the stream record was created, in UNIX epoch time format.

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

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

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

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

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

The size of the stream record, in bytes.

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

The sequence number of the stream record.

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

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

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.

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

The primary key attribute(s) for the DynamoDB item that 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_newImage :: Lens' StreamRecord (Maybe (HashMap Text AttributeValue)) Source #

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