class Amazonite::Lambda::InvocationResponse

Included Modules

Defined in:

lambda/invocation_response.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(status_code : Int32 | Nil = nil, function_error : String | Nil = nil, log_result : String | Nil = nil, payload : String | Nil = nil, executed_version : String | Nil = nil, durable_execution_arn : String | 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 durable_execution_arn : String | Nil #

The ARN of the durable execution that was started. This is returned when invoking a durable function and provides a unique identifier for tracking the execution.


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

The ARN of the durable execution that was started. This is returned when invoking a durable function and provides a unique identifier for tracking the execution.


[View source]
def executed_version : String | Nil #

The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.


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

The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.


[View source]
def function_error : String | Nil #

If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.


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

If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.


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

See Object#hash(hasher)


def log_result : String | Nil #

The last 4 KB of the execution log, which is base64-encoded.


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

The last 4 KB of the execution log, which is base64-encoded.


[View source]
def payload : String | Nil #

The response from the function, or an error object.


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

The response from the function, or an error object.


[View source]
def status_code : Int32 | Nil #

The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.


[View source]
def status_code=(status_code : Int32 | Nil) #

The HTTP status code is in the 200 range for a successful request. For the RequestResponse invocation type, this status code is 200. For the Event invocation type, this status code is 202. For the DryRun invocation type, the status code is 204.


[View source]
def validate! : Nil #

[View source]