Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

StreamRecord

import type { StreamRecord } from "https://aws-api.deno.dev/v0.4/services/dynamodbstreams.ts?docs=full";

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

interface StreamRecord {
ApproximateCreationDateTime?: Date | number | null;
Keys?: {
[key: string]: AttributeValue | null | undefined;
}
| null;
NewImage?: {
[key: string]: AttributeValue | null | undefined;
}
| null;
OldImage?: {
[key: string]: AttributeValue | null | undefined;
}
| null;
SequenceNumber?: string | null;
SizeBytes?: number | null;
StreamViewType?: StreamViewType | null;
}

§Properties

§
ApproximateCreationDateTime?: Date | number | null
[src]

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

§
Keys?: {
[key: string]: AttributeValue | null | undefined;
}
| null
[src]

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

§
NewImage?: {
[key: string]: AttributeValue | null | undefined;
}
| null
[src]

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

§
OldImage?: {
[key: string]: AttributeValue | null | undefined;
}
| null
[src]

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

§
SequenceNumber?: string | null
[src]

The sequence number of the stream record.

§
SizeBytes?: number | null
[src]

The size of the stream record, in bytes.

§
StreamViewType?: StreamViewType | null
[src]

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.