class Amazonite::Kinesis::PutRecordsResultEntry

Overview

Represents the result of an individual record from a PutRecords request. A record that is successfully added to a stream includes SequenceNumber and ShardId in the result. A record that fails to be added to the stream includes ErrorCode and ErrorMessage in the result.

Included Modules

Defined in:

kinesis/put_records_result_entry.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(sequence_number : String | Nil = nil, shard_id : String | Nil = nil, error_code : String | Nil = nil, error_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 error_code : String | Nil #

The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.


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

The error code for an individual record result. ErrorCodes can be either ProvisionedThroughputExceededException or InternalFailure.


[View source]
def error_message : String | Nil #

The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".


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

The error message for an individual record result. An ErrorCode value of ProvisionedThroughputExceededException has an error message that includes the account ID, stream name, and shard ID. An ErrorCode value of InternalFailure has the error message "Internal Service Failure".


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

See Object#hash(hasher)


def sequence_number : String | Nil #

The sequence number for an individual record result.


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

The sequence number for an individual record result.


[View source]
def shard_id : String | Nil #

The shard ID for an individual record result.


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

The shard ID for an individual record result.


[View source]
def validate! : Nil #

[View source]