Daniel-t / node-red-contrib-aws

A collection of Node-RED nodes for AWS.
Apache License 2.0
56 stars 59 forks source link

Chainable #48

Closed werty1st closed 2 years ago

werty1st commented 6 years ago

Thanks for this add ons.

But would it not be more convenient to be able to chain the components?

ATM i have to prepend the Kinesis components with a function that stores the result from the last msg payload directly to msg:

getShardIteratorBuilder: msg.ShardId = msg.payload.ShardId; return msg; => getRecords

image

Daniel-t commented 6 years ago

Unfortunately this is the way the AWS API is, and (since the nodes in this library are simple wrappers) is a constraint I cant simply workaround.

Perhaps I could create an option for each node that would extract a specific part of the API response and put it into the Payload.

Will leave this as an enhancement request for now and consider it some more. Please comment on this issue to show support or otherwise.