Skip to content

/AWS1/CL_LMDINVOCATIONRESPONSE

InvocationResponse

CONSTRUCTOR

IMPORTING

Optional arguments:

iv_statuscode TYPE /AWS1/LMDINTEGER /AWS1/LMDINTEGER

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.

iv_functionerror TYPE /AWS1/LMDSTRING /AWS1/LMDSTRING

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

iv_logresult TYPE /AWS1/LMDSTRING /AWS1/LMDSTRING

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

iv_payload TYPE /AWS1/LMDBLOB /AWS1/LMDBLOB

The response from the function, or an error object.

iv_executedversion TYPE /AWS1/LMDVERSION /AWS1/LMDVERSION

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


Queryable Attributes

StatusCode

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.

Accessible with the following methods

Method Description
GET_STATUSCODE() Getter for STATUSCODE

FunctionError

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

Accessible with the following methods

Method Description
GET_FUNCTIONERROR() Getter for FUNCTIONERROR, with configurable default
ASK_FUNCTIONERROR() Getter for FUNCTIONERROR w/ exceptions if field has no value
HAS_FUNCTIONERROR() Determine if FUNCTIONERROR has a value

LogResult

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

Accessible with the following methods

Method Description
GET_LOGRESULT() Getter for LOGRESULT, with configurable default
ASK_LOGRESULT() Getter for LOGRESULT w/ exceptions if field has no value
HAS_LOGRESULT() Determine if LOGRESULT has a value

Payload

The response from the function, or an error object.

Accessible with the following methods

Method Description
GET_PAYLOAD() Getter for PAYLOAD, with configurable default
ASK_PAYLOAD() Getter for PAYLOAD w/ exceptions if field has no value
HAS_PAYLOAD() Determine if PAYLOAD has a value

ExecutedVersion

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

Accessible with the following methods

Method Description
GET_EXECUTEDVERSION() Getter for EXECUTEDVERSION, with configurable default
ASK_EXECUTEDVERSION() Getter for EXECUTEDVERSION w/ exceptions if field has no val
HAS_EXECUTEDVERSION() Determine if EXECUTEDVERSION has a value