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

Inherits:
Struct
  • Object
show all
Includes:
Structure
Defined in:
lib/aws-sdk-lambda/types.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#executed_versionString

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

Returns:

  • (String)


1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lambda/types.rb', line 1591

class InvocationResponse < Struct.new(
  :status_code,
  :function_error,
  :log_result,
  :payload,
  :executed_version)
  include Aws::Structure
end

#function_errorString

If present, indicates that an error occured 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 did not handle the error. For example, the function ran out of memory or timed out.

Returns:

  • (String)


1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lambda/types.rb', line 1591

class InvocationResponse < Struct.new(
  :status_code,
  :function_error,
  :log_result,
  :payload,
  :executed_version)
  include Aws::Structure
end

#log_resultString

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

Returns:

  • (String)


1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lambda/types.rb', line 1591

class InvocationResponse < Struct.new(
  :status_code,
  :function_error,
  :log_result,
  :payload,
  :executed_version)
  include Aws::Structure
end

#payloadString

The response from the function, or an error object.

Returns:

  • (String)


1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lambda/types.rb', line 1591

class InvocationResponse < Struct.new(
  :status_code,
  :function_error,
  :log_result,
  :payload,
  :executed_version)
  include Aws::Structure
end

#status_codeInteger

The HTTP status code will be in the 200 range for successful request. For the ‘RequestResponse` invocation type this status code will be 200. For the `Event` invocation type this status code will be 202. For the `DryRun` invocation type the status code will be 204.

Returns:

  • (Integer)


1591
1592
1593
1594
1595
1596
1597
1598
# File 'lib/aws-sdk-lambda/types.rb', line 1591

class InvocationResponse < Struct.new(
  :status_code,
  :function_error,
  :log_result,
  :payload,
  :executed_version)
  include Aws::Structure
end