sym.sdk.integrations.aws_lambda¶
Methods for invoking AWS Lambda functions.
Functions
|
Synchronously invokes an AWS Lambda function. |
|
Asynchronously invokes an AWS Lambda function. |
- sym.sdk.integrations.aws_lambda.invoke(arn: str, payload: Optional[dict] = None) Any ¶
Synchronously invokes an AWS Lambda function. Returns the JSON-deserialized object returned by the lambda
- Parameters
arn – The ARN of the Lambda function to invoke.
payload – A dict of JSON-serializable data to pass to the function.
- sym.sdk.integrations.aws_lambda.invoke_async(arn: str, payload: Optional[dict] = None) bool ¶
Asynchronously invokes an AWS Lambda function. Note that this method simply returns a boolean indicating success enqueuing the invocation.
- Parameters
arn – The ARN of the Lambda function to invoke.
payload – A dict of JSON-serializable data to pass to the function.