aws-v3-sdk v1.0.34
AWS SDK for JavaScript
Version 2.x
This package can be used to migrate to AWS SDK v3 from AWS SDK v2 without much change in exisint codebase. This package takes the exisint AWS SDK v2 format and convert it to the AWS SDK v3 format.
AWS SDK V2
const AWS = require('aws-sdk')
const docClient = new AWS.DynamoDB.DocumentClient()
let params = {
TableName: TABLE_NAME,
Key: {
'id': ID
}
}
docClient.get(params, function (err, data) {
console.log(data.Item)
})
AWS SDK V3
const AWS = require('aws-v3-sdk')
const docClient = new AWS.DynamoDB.DocumentClient()
let params = {
TableName: TABLE_NAME,
Key: {
'id': ID
}
}
docClient.get(params, function (err, data) {
console.log(data.Item)
})
Table of Contents:
Supported Functions
- Dynamo DB
- Lambda
- OpenSearch
- Cognito
- S3
- SNS
- SQS
- STS
- Cognito
Getting Started
How To Install
In Node.js
The preferred way to install the AWS SDK for Node.js is to use the npm package manager for Node.js. Simply type the following into a terminal window:
npm install aws-v3-sdk
Then within your application, you can reference the react native compatible version of the SDK with the following: We can use the old SDK format without migrating the code base. Just update the AWS import.
const AWS = require('aws-v3-sdk')
const s3 = new AWS.S3()
const params = {
Bucket: <BUCKET NAME>,
Key: <FILE KEY>,
Body: <STRING DATA,
ContentType: 'text/json'
}
s3.putObject(params, (err, data) => {
if (err) {
< DO Stuff HERE >
} else {
< DO Stuff HERE >
}
})
Supported Functions
Dynamo DB get query scan put delete update batchWrite transactWrite batchGet
S3 getSignedUrl getObject putObject headObject createMultipartUpload completeMultipartUpload
Known Limitations
There are a few known limitations.
- This package has not been updated to handle all the AWS SDK APIs.
Contributing
We welcome community contributions and pull requests. See CONTRIBUTING.md for information on how to set up a development environment and submit code.
License
This SDK is distributed under the Apache License, Version 2.0, see LICENSE.txt and NOTICE.txt for more information.
4 months ago
4 months ago
4 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago