aws-collection-stream
v0.0.8
Published
Takes care of any paginated AWS SDK call, and return the output as a highland.js stream of objects.
Downloads
3
Maintainers
Readme
aws-collection-stream
Takes care of any paginated AWS SDK call, and return the output as a highland.js stream of objects.
npm install aws-collection-stream
const awsCollectionStream = require ( 'aws-collection-stream' );
return awsCollectionStream ( {
serviceName: 'ECS',
serviceRegion: 'eu-west-1',
serviceMethod: 'listServices',
parms: { maxResults: 2 }
} )
.errors ( error => console.error ( error ) )
.each ( console.log );