You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::Lambda::Types::InvocationResponse

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Returned by:

Instance Attribute Summary collapse

Instance Attribute Details

#executed_versionString

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

Returns:

  • (String)

    The version of the function that executed.

#function_errorString

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

  • Handled - The runtime caught an error thrown by the function and formatted it into a JSON document.

  • Unhandled - The runtime didn\'t handle the error. For example, the function ran out of memory or timed out.

Returns:

  • (String)

    If present, indicates that an error occurred during function execution.

#log_resultString

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

Returns:

  • (String)

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

#payloadString

The response from the function, or an error object.

Returns:

  • (String)

    The response from the function, or an error object.

#status_codeInteger

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.

Returns:

  • (Integer)

    The HTTP status code is in the 200 range for a successful request.