Skip to content

EvaluateCodeRequest

Source code in docs_src/capo_appsync/types/evaluate_code_request.py
class EvaluateCodeRequest(TypedDict, closed=True):
    runtime: "capo_appsync.types.app_sync_runtime.AppSyncRuntime"
    """<p>The runtime to be used when evaluating the code. Currently, only the <code>APPSYNC_JS</code> runtime is supported.</p>"""
    code: "capo_appsync.types.code.Code"
    """<p>The code definition to be evaluated. Note that <code>code</code> and <code>runtime</code> are both required for this action. The <code>runtime</code> value must be <code>APPSYNC_JS</code>.</p>"""
    context: "capo_appsync.types.context.Context"
    """<p>The map that holds all of the contextual information for your resolver invocation. A <code>context</code> is required for this action.</p>"""
    function: NotRequired["capo_appsync.types.string.String"]
    """<p>The function within the code to be evaluated. If provided, the valid values are <code>request</code> and <code>response</code>.</p>"""

code instance-attribute

code: Code

The code definition to be evaluated. Note that code and runtime are both required for this action. The runtime value must be APPSYNC_JS.

context instance-attribute

context: Context

The map that holds all of the contextual information for your resolver invocation. A context is required for this action.

function instance-attribute

function: NotRequired[String]

The function within the code to be evaluated. If provided, the valid values are request and response.

runtime instance-attribute

runtime: AppSyncRuntime

The runtime to be used when evaluating the code. Currently, only the APPSYNC_JS runtime is supported.