class Amazonite::Lambda::CallbackDetails

Overview

Contains details about a callback operation in a durable execution, including the callback token and timeout configuration.

Included Modules

Defined in:

lambda/callback_details.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(callback_id : String | Nil = nil, result : String | Nil = nil, error : ErrorObject | 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 callback_id : String | Nil #

The callback ID. Callback IDs are generated by the DurableContext when a durable function calls ctx.waitForCallback.


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

The callback ID. Callback IDs are generated by the DurableContext when a durable function calls ctx.waitForCallback.


[View source]
def error : ErrorObject | Nil #

An error object that contains details about the failure.


[View source]
def error=(error : ErrorObject | Nil) #

An error object that contains details about the failure.


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

See Object#hash(hasher)


def result : String | Nil #

The response payload from the callback operation as a string.


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

The response payload from the callback operation as a string.


[View source]
def validate! : Nil #

[View source]