Skip to content

InvocationResponse

Source code in docs_src/capo_lambda/types/invocation_response.py
class InvocationResponse(TypedDict, closed=True):
    status_code: "capo_lambda.types.integer.Integer"
    """<p>The HTTP status code is in the 200 range for a successful request. For the <code>RequestResponse</code> invocation type, this status code is 200. For the <code>Event</code> invocation type, this status code is 202. For the <code>DryRun</code> invocation type, the status code is 204.</p>"""
    function_error: NotRequired["capo_lambda.types.string.String"]
    """<p>If present, indicates that an error occurred during function execution. Details about the error are included in the response payload.</p>"""
    log_result: NotRequired["capo_lambda.types.string.String"]
    """<p>The last 4 KB of the execution log, which is base64-encoded.</p>"""
    payload: NotRequired["capo_lambda.types.blob.Blob"]
    """<p>The response from the function, or an error object.</p>"""
    executed_version: NotRequired["capo_lambda.types.version.Version"]
    """<p>The version of the function that executed. When you invoke a function with an alias, this indicates which version the alias resolved to.</p>"""
    durable_execution_arn: NotRequired[
        "capo_lambda.types.durable_execution_arn.DurableExecutionArn"
    ]
    """<p>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.</p>"""

durable_execution_arn instance-attribute

durable_execution_arn: NotRequired[DurableExecutionArn]

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.

executed_version instance-attribute

executed_version: NotRequired[Version]

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

function_error instance-attribute

function_error: NotRequired[String]

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

log_result instance-attribute

log_result: NotRequired[String]

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

payload instance-attribute

payload: NotRequired[Blob]

The response from the function, or an error object.

status_code instance-attribute

status_code: Integer

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.