Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lambda.invokeAsync depracated #2

Closed
czhao028 opened this issue Jun 28, 2019 · 2 comments
Closed

lambda.invokeAsync depracated #2

czhao028 opened this issue Jun 28, 2019 · 2 comments

Comments

@czhao028
Copy link

Although it seems like this code is fairly recently built, the Java SDK says that lambda.invokeAsync is deprecated, which appears in index.js of kvs_trigger. If we're trying to deploy this is a lambda function ourselves (with a few modifications), should we swap out the invokeAsync with invoke(request)? Is there a different version that ran with the CloudFormation template?

@czhao028
Copy link
Author

CloudFormation template mentioned is deployment/AI-powered-speech-analytics-for-amazon-connect.template

@efh365
Copy link
Contributor

efh365 commented Jun 28, 2019

It looks like invokeAsync() is deprecated in the java sdk, but not in the js sdk. Since this is used in the kvs_trigger function, which is js, it should be ok to use. That is what we have used throughout our development and testing.

js: https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/Lambda.html#invokeAsync-property
java: https://docs.aws.amazon.com/AWSJavaSDK/latest/javadoc/com/amazonaws/services/lambda/AWSLambda.html#invokeAsync-com.amazonaws.services.lambda.model.InvokeAsyncRequest-

@efh365 efh365 closed this as completed Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants