Comments (3)
Hi @jepetko ,
Which npm package do you mean by aws-lambda? Do you mean @types/aws-lambda? https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda
I'm referring to the imports shared in your initial code:
import {APIGatewayProxyEvent, APIGatewayProxyResult, Context} from 'aws-lambda';
@types/aws-lambda
is not a package maintained by AWS and has nothing to do with the SDK therefore it should not be related to the migration between v2 and v3. If there is an issue with the compatibility with v3, I suggest you open an issue on that repo, since the SDK only officially supports AWS packages and not 3rd party tools.
My guess is that there is no issue and you can safely re-introduce those imports since they just seem like type definitions and should be safe to use regardless of SDK version.
All the best,
Ran~
from aws-sdk-js-v3.
Hi @jepetko ,
the aws-lambda
package is not related to the AWS SDK. The aws-sdk/client-lambda
package is a control plane API that lets you create, update, and invoke your lambda function. I'm not too familiar with aws-lambda
package, but this is not a part of the AWS SDK, and therefore should not be related to the JS SDK's migration from v2 to v3. AFAIK aws-lambda
is the client for the data-plane API of lambda, and is mainly revolving exposing types that you can use in your code which should be SDK version agnostic.
Is there anything specific stopping you from using the aws-lambda
package with v3?
Thanks,
Ran~
from aws-sdk-js-v3.
Hi @RanVaknin !
thank you for the answer!
Which npm package do you mean by aws-lambda
? Do you mean @types/aws-lambda
? https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/aws-lambda
What I realized now is when I migrated to v3 ("@aws-sdk/*": "^3.*.*"
), I removed both, "aws-sdk": "^2.*.*"
and "@types/aws-lambda": "^*.*.*"
in the expectation that the types will be served by @aws-sdk/*
.
So the way to go is to take the types unrelated to the internal implementation of aws-sdk (such as events coming from SQS, API GW etc.) from @types/aws-lambda
, correct?
Thanks!
from aws-sdk-js-v3.
Related Issues (20)
- Add possibility to retrieve savings plans inventory for the whole organization HOT 3
- what to put as a config? HOT 1
- Conflict in Peer Dependencies for @aws-sdk/client-sts @aws-sdk/client-secrets-manager HOT 4
- input/outputFilterSensitiveLog logs entire inputs and outputs of S3 object commands HOT 4
- SES Interface change is not compatible HOT 4
- [S3][Upload] : Wrong Location in response for file size greater than 5MB HOT 1
- DynamoDBClient waitUntilTableExists throws exception: ResourceNotFoundException HOT 4
- client use http protocol failed
- Example code for lib-storage doesn't work HOT 1
- SNS Verify HTTPS endpoint signature HOT 1
- `ValidationError` should report the error fields starting from upper case that matches the command's input type HOT 1
- Add Policy Action Name used by a command HOT 1
- CloudwatchLogs `retention` field in `CreateLogGroupCommand`
- Error when importing @aws-sdk/client-s3 HOT 3
- Race conditions in S3 upload HOT 6
- (0 , import_core.parseJsonBody) is not a function HOT 3
- await Upload.done() never returns if stream is (still) empty HOT 1
- Provide SendCommandCommand Status Update Guide HOT 1
- Pass client logger to request handlers
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aws-sdk-js-v3.