awssum-amazon-dynamodb
v1.4.0
Published
AwsSum plugin for Amazon DynamoDB.
Downloads
11
Maintainers
Readme
NOTE: AwsSum is now deprecated. Please use aws-sdk instead.
awssum-amazon-SERVICE
This is an AwsSum
plugin!
You'll need to add awssum-amazon-dynamodb to your package.json dependencies. Both awssum and awssum-amazon are pulled in as peer dependencies.
dependencies : {
"awssum-amazon-dynamodb" : "1.x",
},
Example
List all your tables
var fmt = require('fmt');
var amazonDynamoDB = require('awssum-amazon-dynamodb');
var dynamodb = new amazonDynamoDB.DynamoDB({
'accessKeyId' : process.env.ACCESS_KEY_ID,
'secretAccessKey' : process.env.SECRET_ACCESS_KEY,
'region' : amazonDynamoDB.US_EAST_1
});
dynamodb.ListTables(function(err, data) {
fmt.dump(err, 'err');
fmt.dump(data, 'data');
});
Operations
- BatchGetItem
- BatchWriteItem
- CreateTable
- DeleteItem
- DeleteTable
- DescribeTable
- GetItem
- ListTables
- PutItem
- Query
- Scan
- UpdateItem
- UpdateTable
Author
Written by Andrew Chilton - Blog - Twitter.
License
- Copyright 2011-2013 Apps Attic Ltd. All rights reserved.
- Copyright 2013 Andrew Chilton. All rights reserved.
(Ends)