class Amazonite::DynamoDB::StreamSpecification

Overview

Represents the DynamoDB Streams configuration for a table in DynamoDB.

Included Modules

Defined in:

dynamodb/stream_specification.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(stream_enabled : Bool, stream_view_type : StreamViewType | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def stream_enabled : Bool #

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


[View source]
def stream_enabled=(stream_enabled : Bool) #

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


[View source]
def stream_view_type : StreamViewType | Nil #

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.


[View source]
def stream_view_type=(stream_view_type : StreamViewType | Nil) #

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.


[View source]
def validate! : Nil #

[View source]