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.

StreamSpecification

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

type StreamSpecification struct { StreamEnabled *bool `type:"boolean"` StreamViewType *string `type:"string" enum:"StreamViewType"` }

Represents the DynamoDB Streams configuration for a table in DynamoDB.

StreamEnabled

Type: *bool

Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.

StreamViewType

Type: *string

When an item in the table is modified, StreamViewType determines what information is written to the stream for this table. Valid values for StreamViewType are:

  • KEYS_ONLY - Only the key attributes of the modified item are written to the stream.

  • NEW_IMAGE - The entire item, as it appears after it was modified, is written to the stream.

  • OLD_IMAGE - The entire item, as it appeared before it was modified, is written to the stream.

  • NEW_AND_OLD_IMAGES - Both the new and the old item images of the item are written to the stream.

Method

GoString

func (s StreamSpecification) GoString() string

GoString returns the string representation

SetStreamEnabled

func (s *StreamSpecification) SetStreamEnabled(v bool) *StreamSpecification

SetStreamEnabled sets the StreamEnabled field's value.

SetStreamViewType

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

SetStreamViewType sets the StreamViewType field's value.

String

func (s StreamSpecification) String() string

String returns the string representation

On this page: