sym.sdk.integrations.aws_lambda.invoke

sym.sdk.integrations.aws_lambda.invoke(arn: str, payload: dict = {})Union[dict, str]

Synchronously invokes an AWS Lambda function. If the results can be parsed as a JSON object, a dict is returned. Otherwise, the result is returned as a string.

Parameters
  • arn – The ARN of the Lambda function to invoke.

  • payload – A dict of JSON-serializable data to pass to the function.