AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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

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

Overview

Constant Summary collapse

SENSITIVE =
[:payload]

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)


3059
3060
3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 3059

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

#function_errorString

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

Returns:

  • (String)


3059
3060
3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 3059

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

#log_resultString

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

Returns:

  • (String)


3059
3060
3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 3059

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

#payloadString

The response from the function, or an error object.

Returns:

  • (String)


3059
3060
3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 3059

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

#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)


3059
3060
3061
3062
3063
3064
3065
3066
3067
# File 'gems/aws-sdk-lambda/lib/aws-sdk-lambda/types.rb', line 3059

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