Skip to content

UpdateFunctionRequest

Source code in docs_src/capo_elementalinference/types/update_function_request.py
class UpdateFunctionRequest(TypedDict, closed=True):
    id: "capo_elementalinference.types.function_id.FunctionId"
    """<p>The ID of the function.</p>"""
    name: NotRequired["capo_elementalinference.types.resource_name.ResourceName"]
    """<p>A new name for the function. You can't change the name while the function is referenced by a feed. </p>"""
    target: NotRequired["capo_elementalinference.types.function_target.FunctionTarget"]
    """<p>A new target for the function. You can't change the target while the function is referenced by a feed. </p>"""
    request_expression: NotRequired[
        "capo_elementalinference.types.jsonata_expression.JsonataExpression"
    ]
    """<p>A new request expression for the function. Elemental Inference derives contextTypes again from the new expression. While a feed references the function, the new expression must reference the same media context as the current one. </p>"""
    response_expression: NotRequired[
        "capo_elementalinference.types.jsonata_expression.JsonataExpression"
    ]
    """<p>A new response expression for the function. To remove the response expression, specify an empty string. A function with a Bedrock target and eventBridgeDelivery set to ENABLED must keep a response expression. </p>"""
    description: NotRequired[
        "capo_elementalinference.types.function_description.FunctionDescription"
    ]
    """<p>A new description for the function.</p>"""
    event_bridge_delivery: NotRequired[
        "capo_elementalinference.types.event_bridge_delivery_mode.EventBridgeDeliveryMode"
    ]
    """<p>Specifies whether Elemental Inference also sends this function's marked results to Amazon EventBridge, as described for CreateFunction. If you omit this parameter, the current value is kept. While a feed references the function, you can change this value to DISABLED, but not to ENABLED. </p>"""

description instance-attribute

description: NotRequired[FunctionDescription]

A new description for the function.

event_bridge_delivery instance-attribute

event_bridge_delivery: NotRequired[EventBridgeDeliveryMode]

Specifies whether Elemental Inference also sends this function's marked results to Amazon EventBridge, as described for CreateFunction. If you omit this parameter, the current value is kept. While a feed references the function, you can change this value to DISABLED, but not to ENABLED.

id instance-attribute

The ID of the function.

name instance-attribute

name: NotRequired[ResourceName]

A new name for the function. You can't change the name while the function is referenced by a feed.

request_expression instance-attribute

request_expression: NotRequired[JsonataExpression]

A new request expression for the function. Elemental Inference derives contextTypes again from the new expression. While a feed references the function, the new expression must reference the same media context as the current one.

response_expression instance-attribute

response_expression: NotRequired[JsonataExpression]

A new response expression for the function. To remove the response expression, specify an empty string. A function with a Bedrock target and eventBridgeDelivery set to ENABLED must keep a response expression.

target instance-attribute

target: NotRequired[FunctionTarget]

A new target for the function. You can't change the target while the function is referenced by a feed.