Comments (5)
For example using a "function" node to prepare data for putItem in a DynamoDB table.
Primary key: partition "dev_id" and sort time (ISO 8601 format).
let ISOdatetime = new Date(msg.payload).toISOString();
msg.Item = {
"dev_id": {
"S": "test_001"
},
"time": {
"S": ISOdatetime
}
}
return msg;
Description of "Item" can be found in AWS Javascript SDK documentation -> putItem -> Parameters
https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB.html#putItem-property
from node-red-contrib-aws.
Thanks @MarcoBenini
@Hugobox did this answer your question?
from node-red-contrib-aws.
Hi,
This is a great node, it works for me as explain above, now, I would like to "detect" or automatically convert from javascript types a bit like in https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/DynamoDB/Converter.html
My difficulty is that I have a JSON object that I need to store containing around 50 different attributes, and I wonder if I could avoid to type each of the attribute type "S", "N", NULL, etc... but detect them automatically...
Does this make sense ? Is there a way to do this?
Thibaut
from node-red-contrib-aws.
I hadn't noticed the Converter object previously. It will need a special node, happy to look into this
from node-red-contrib-aws.
I've added a node the the repository (not published yet), please try it out. Cursory testing seems to be work as expected
from node-red-contrib-aws.
Related Issues (20)
- /usr/src/node-red/node_modules/node-red-contrib-aws/Ecs.html does not exist HOT 2
- How to add '--detection-attributes "ALL"' to Rekognition/ Indexfaces node HOT 1
- Dependency Issue with agent-base <6.0.0 and Node-RED 2.0 HOT 2
- Autogeneration for all AWS API HOT 4
- Feature request: Allow credentials to be supplied by ECS container HOT 3
- How to pass image to AWS Rekognition node? HOT 1
- [error] [AWS Rekognition:text] SyntaxError: Unexpected token i in JSON at position 0 HOT 1
- How I can view aws rekognition output image?
- EC2 StartInstance "SyntaxError: Unexpected token i in JSON at position 0" HOT 5
- add cloud watch api in node-red-contrib-aws
- Example flow for EC2 services
- Error outputs do not include original msg data HOT 1
- DynamoDB usage examples Please HOT 1
- PutRecord Kinesis passing data does not handle the payload HOT 2
- Security Token Service Node not available after build HOT 1
- SQS: How to set request parameters for ReadMessage? HOT 2
- Rekognition not returning label instances HOT 3
- Enhancement : S3 : Allow for endpoint url to be passed (for s3 interface endpoints)
- Billing?
- Feature Request: IAM auth with SessionToken HOT 1
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 node-red-contrib-aws.