Skip to content

Lambdas

Source code in docs_src/capo_arc_region_switch/types/lambdas.py
class Lambdas(TypedDict, closed=True):
    cross_account_role: NotRequired[
        "capo_arc_region_switch.types.iam_role_arn.IamRoleArn"
    ]
    """<p>The cross account role for the configuration.</p>"""
    external_id: NotRequired["str"]
    """<p>The external ID (secret key) for the configuration.</p>"""
    arn: NotRequired["capo_arc_region_switch.types.lambda_arn.LambdaArn"]
    """<p>The Amazon Resource Name (ARN) of the Lambda function.</p>"""
    payload: NotRequired["capo_arc_region_switch.types.lambda_payload.LambdaPayload"]
    """<p>The JSON payload to send to the Lambda function invocation. If you don't specify a payload, Region switch invokes the function with only the execution metadata.</p> <p>If you provide a JSON object, Region switch merges execution metadata keys (<code>InvokedBy</code>, <code>PlanArn</code>, <code>ExecutionId</code>, <code>StepName</code>) into the top level. If one of your keys has the same name as a metadata key, your key takes precedence.</p> <p>If you provide any other JSON type (string, number, boolean, or array), Region switch forwards it to the Lambda function unchanged, without adding metadata.</p>"""

arn instance-attribute

arn: NotRequired[LambdaArn]

The Amazon Resource Name (ARN) of the Lambda function.

cross_account_role instance-attribute

cross_account_role: NotRequired[IamRoleArn]

The cross account role for the configuration.

external_id instance-attribute

external_id: NotRequired[str]

The external ID (secret key) for the configuration.

payload instance-attribute

payload: NotRequired[LambdaPayload]

The JSON payload to send to the Lambda function invocation. If you don't specify a payload, Region switch invokes the function with only the execution metadata.

If you provide a JSON object, Region switch merges execution metadata keys (InvokedBy, PlanArn, ExecutionId, StepName) into the top level. If one of your keys has the same name as a metadata key, your key takes precedence.

If you provide any other JSON type (string, number, boolean, or array), Region switch forwards it to the Lambda function unchanged, without adding metadata.