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.

Record

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

type Record struct { AwsRegion *string `locationName:"awsRegion" type:"string"` Dynamodb *StreamRecord `locationName:"dynamodb" type:"structure"` EventID *string `locationName:"eventID" type:"string"` EventName *string `locationName:"eventName" type:"string" enum:"OperationType"` EventSource *string `locationName:"eventSource" type:"string"` EventVersion *string `locationName:"eventVersion" type:"string"` UserIdentity *Identity `locationName:"userIdentity" type:"structure"` }

A description of a unique event within a stream.

AwsRegion

Type: *string

The region in which the GetRecords request was received.

Dynamodb

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

EventID

Type: *string

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

EventName

Type: *string

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

Type: *string

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

EventVersion

Type: *string

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

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

Method

GoString

func (s Record) GoString() string

GoString returns the string representation

SetAwsRegion

func (s *Record) SetAwsRegion(v string) *Record

SetAwsRegion sets the AwsRegion field's value.

SetDynamodb

func (s *Record) SetDynamodb(v *StreamRecord) *Record

SetDynamodb sets the Dynamodb field's value.

SetEventID

func (s *Record) SetEventID(v string) *Record

SetEventID sets the EventID field's value.

SetEventName

func (s *Record) SetEventName(v string) *Record

SetEventName sets the EventName field's value.

SetEventSource

func (s *Record) SetEventSource(v string) *Record

SetEventSource sets the EventSource field's value.

SetEventVersion

func (s *Record) SetEventVersion(v string) *Record

SetEventVersion sets the EventVersion field's value.

SetUserIdentity

func (s *Record) SetUserIdentity(v *Identity) *Record

SetUserIdentity sets the UserIdentity field's value.

String

func (s Record) String() string

String returns the string representation

On this page: