class
Amazonite::Lambda::InvocationResponse
- Amazonite::Lambda::InvocationResponse
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
lambda/invocation_response.crConstructors
- .new(pull : JSON::PullParser)
- .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)
- .new(*, __pull_for_json_serializable pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#durable_execution_arn : String | Nil
The ARN of the durable execution that was started.
-
#durable_execution_arn=(durable_execution_arn : String | Nil)
The ARN of the durable execution that was started.
-
#executed_version : String | Nil
The version of the function that executed.
-
#executed_version=(executed_version : String | Nil)
The version of the function that executed.
-
#function_error : String | Nil
If present, indicates that an error occurred during function execution.
-
#function_error=(function_error : String | Nil)
If present, indicates that an error occurred during function execution.
-
#hash(hasher)
See
Object#hash(hasher) -
#log_result : String | Nil
The last 4 KB of the execution log, which is base64-encoded.
-
#log_result=(log_result : String | Nil)
The last 4 KB of the execution log, which is base64-encoded.
-
#payload : String | Nil
The response from the function, or an error object.
-
#payload=(payload : String | Nil)
The response from the function, or an error object.
-
#status_code : Int32 | Nil
The HTTP status code is in the 200 range for a successful request.
-
#status_code=(status_code : Int32 | Nil)
The HTTP status code is in the 200 range for a successful request.
- #validate! : Nil
Constructor Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
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.
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.
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.
The last 4 KB of the execution log, which is base64-encoded.
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.