redux-effects-aws
AWS SDK effect driver.
Installation
$ npm install redux-effects-aws
Why
Makes it easy to write testable server side code that interacts with AWS services without mocking or running development services.
Usage
const io = // run update // Action creator that updates an s3 object. { // get object let data = let obj = JSON // update objfoo = 'qux' // put object }
API
awsMiddleware (config)
Effect driver.
config
- global aws config (e.g. region, output...)
Returns: redux effects middleware
aws (service, method, params)
Action creator.
service
- The service to use. Optionally can be an object with the signature, {service, options}, if you need to specify service options.method
- Method to call on service.params
- Params to use for call.
License
MIT