highland-aws

0.0.2 • Public • Published

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 );

Package Sidebar

Install

npm i highland-aws

Weekly Downloads

0

Version

0.0.2

License

ISC

Unpacked Size

7.23 kB

Total Files

3

Last publish

Collaborators

  • 4dr144n