Closed calabr93 closed 1 week ago
Hi @calabr93 - thanks for reporting this.
First, I wanted to mention that InvokeAsync
has been deprecated (please refer to Lambda docs).
With Invoke
, it functions both synchronously and asynchronously. Here's what the doc say:
You can invoke a function synchronously (and wait for the response), or asynchronously. By default, Lambda invokes your function synchronously (i.e. theInvocationType is RequestResponse). To invoke a function asynchronously, set InvocationType to Event. Lambda passes the ClientContext object to your function for synchronous invocations only.
Also for reference, our SDK documentations are upstream generated by service API docs and in this case, JavaScript SDK documentation reflects the Lambda doc. The only thing that's missing is the deprecation banner which I'll get it added to.
Hope it makes sense and let me know if there's any further questions. Best, John
This issue has not received a response in 1 week. If you still think there is a problem, please leave a comment to avoid the issue from automatically closing.
Describe the issue
"For synchronous function invocation, use Invoke." instead of "For asynchronous function invocation, use Invoke."
Links
https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/lambda/command/InvokeAsyncCommand/