AWS SDK for Go (PILOT)
API Reference

PREVIEW DOCUMENTATION - This is a preview of a new format for the AWS SDK for Go API Reference documentation. For the current AWS SDK for Go API Reference, see https://docs.aws.amazon.com/sdk-for-go/api/.

We welcome your feedback on this new version of the documentation. Send your comments to aws-sdkdocs-feedback@amazon.com.

StreamRecord

import "github.com/aws/aws-sdk-go/service/dynamodbstreams"

type StreamRecord struct { ApproximateCreationDateTime *time.Time `type:"timestamp"` Keys map[string]*dynamodb.AttributeValue `type:"map"` NewImage map[string]*dynamodb.AttributeValue `type:"map"` OldImage map[string]*dynamodb.AttributeValue `type:"map"` SequenceNumber *string `min:"21" type:"string"` SizeBytes *int64 `min:"1" type:"long"` StreamViewType *string `type:"string" enum:"StreamViewType"` }

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

ApproximateCreationDateTime

Type: *time.Time

The approximate date and time when the stream record was created, in UNIX epoch time (http://www.epochconverter.com/) format.

Keys

Type: map[string]*dynamodb.AttributeValue

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

NewImage

Type: map[string]*dynamodb.AttributeValue

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

OldImage

Type: map[string]*dynamodb.AttributeValue

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

SequenceNumber

Type: *string

The sequence number of the stream record.

SizeBytes

Type: *int64

The size of the stream record, in bytes.

StreamViewType

Type: *string

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.

Method

GoString

func (s StreamRecord) GoString() string

GoString returns the string representation

SetApproximateCreationDateTime

func (s *StreamRecord) SetApproximateCreationDateTime(v time.Time) *StreamRecord

SetApproximateCreationDateTime sets the ApproximateCreationDateTime field's value.

SetKeys

func (s *StreamRecord) SetKeys(v map[string]*dynamodb.AttributeValue) *StreamRecord

SetKeys sets the Keys field's value.

SetNewImage

func (s *StreamRecord) SetNewImage(v map[string]*dynamodb.AttributeValue) *StreamRecord

SetNewImage sets the NewImage field's value.

SetOldImage

func (s *StreamRecord) SetOldImage(v map[string]*dynamodb.AttributeValue) *StreamRecord

SetOldImage sets the OldImage field's value.

SetSequenceNumber

func (s *StreamRecord) SetSequenceNumber(v string) *StreamRecord

SetSequenceNumber sets the SequenceNumber field's value.

SetSizeBytes

func (s *StreamRecord) SetSizeBytes(v int64) *StreamRecord

SetSizeBytes sets the SizeBytes field's value.

SetStreamViewType

func (s *StreamRecord) SetStreamViewType(v string) *StreamRecord

SetStreamViewType sets the StreamViewType field's value.

String

func (s StreamRecord) String() string

String returns the string representation

On this page: