highland-aws
v0.0.2
Published
AWS API calls that return highland.js streams, with throttling handling, and pagination
Downloads
5
Maintainers
Readme
aws-collection-stream
Takes care of any paginated or unpaginated AWS SDK call, and return the output as a highland.js stream of objects, handling throttling.
Installation
npm install highland-aws
callPaginated
const hAws = require ( 'hAws' );
return hAws.callPaginated ( {
serviceName: 'ECS',
serviceRegion: 'eu-west-1',
serviceMethod: 'listServices',
parms: { maxResults: 5 }
} )
.errors ( error => console.error ( error ) )
.each ( console.log );
call
const hAws = require ( 'hAws' );
return hAws.call ( {
serviceName: 'ECS',
serviceRegion: 'eu-west-1',
serviceMethod: 'listServices',
parms: { maxResults: 5 }
} )
.errors ( error => console.error ( error ) )
.each ( console.log );