Skip to content

EvaluateMappingTemplateResponse

Source code in docs_src/capo_appsync/types/evaluate_mapping_template_response.py
class EvaluateMappingTemplateResponse(TypedDict, closed=True):
    evaluation_result: NotRequired[
        "capo_appsync.types.evaluation_result.EvaluationResult"
    ]
    """<p>The mapping template; this can be a request or response template.</p>"""
    error: NotRequired["capo_appsync.types.error_detail.ErrorDetail"]
    """<p>The <code>ErrorDetail</code> object.</p>"""
    logs: NotRequired["capo_appsync.types.logs.Logs"]
    """<p>A list of logs that were generated by calls to <code>util.log.info</code> and <code>util.log.error</code> in the evaluated code.</p>"""
    stash: NotRequired["capo_appsync.types.stash.Stash"]
    """<p>An object available inside each resolver and function handler. A single <code>stash</code> object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.</p>"""
    out_errors: NotRequired["capo_appsync.types.out_errors.OutErrors"]
    """<p>The list of runtime errors that are added to the GraphQL operation response.</p>"""

error instance-attribute

error: NotRequired[ErrorDetail]

The ErrorDetail object.

evaluation_result instance-attribute

evaluation_result: NotRequired[EvaluationResult]

The mapping template; this can be a request or response template.

logs instance-attribute

logs: NotRequired[Logs]

A list of logs that were generated by calls to util.log.info and util.log.error in the evaluated code.

out_errors instance-attribute

out_errors: NotRequired[OutErrors]

The list of runtime errors that are added to the GraphQL operation response.

stash instance-attribute

stash: NotRequired[Stash]

An object available inside each resolver and function handler. A single stash object lives through a single resolver run. Therefore, you can use the stash to pass arbitrary data across request and response handlers and across functions in a pipeline resolver.