class Amazonite::DynamoDB::CancellationReason

Overview

An ordered list of errors for each item in the request which caused the transaction to get cancelled. The values of the list are ordered according to the ordering of the TransactWriteItems request parameter. If no error occurred for the associated item an error with a Null code and Null message will be present.

Included Modules

Defined in:

dynamodb/cancellation_reason.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(item : Hash(String, AttributeValue) | Nil = nil, code : String | Nil = nil, message : String | Nil = nil) #

[View source]
def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

[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 code : String | Nil #

Status code for the result of the cancelled transaction.


[View source]
def code=(code : String | Nil) #

Status code for the result of the cancelled transaction.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def item : Hash(String, AttributeValue) | Nil #

Item in the request which caused the transaction to get cancelled.


[View source]
def item=(item : Hash(String, AttributeValue) | Nil) #

Item in the request which caused the transaction to get cancelled.


[View source]
def message : String | Nil #

Cancellation reason message description.


[View source]
def message=(message : String | Nil) #

Cancellation reason message description.


[View source]
def validate! : Nil #

[View source]