I wish to execute code that runs like the lambda.invoke function from https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html.
e.g.
import AWS from 'aws-sdk'
var lambda = new AWS.Lambda()
var params = {
FunctionName: func,
InvocationType: "Event",
Payload: obj
}
await lambda.invoke(params).promise()
However, this is from an older version (v2) and I wish to achieve the same result using the javascript aws-sdk v3. I am looking at the documentation at https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-lambda/index.html, but I can't find out which function will let me achieve the same result. Would anyone know how to achieve the same invocation of the lambda in a 'fire and forget' manner?