class
Amazonite::DynamoDB::StreamSpecification
- Amazonite::DynamoDB::StreamSpecification
- Reference
- Object
Overview
Represents the DynamoDB Streams configuration for a table in DynamoDB.
Included Modules
- JSON::Serializable
Defined in:
dynamodb/stream_specification.crConstructors
- .new(pull : JSON::PullParser)
- .new(stream_enabled : Bool, stream_view_type : StreamViewType | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#stream_enabled : Bool
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
-
#stream_enabled=(stream_enabled : Bool)
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
-
#stream_view_type : StreamViewType | Nil
When an item in the table is modified,
StreamViewTypedetermines what information is written to the stream for this table. -
#stream_view_type=(stream_view_type : StreamViewType | Nil)
When an item in the table is modified,
StreamViewTypedetermines what information is written to the stream for this table. - #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
Indicates whether DynamoDB Streams is enabled (true) or disabled (false) on the table.
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.
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.