0.0.2 • Published 5 years ago

highland-aws v0.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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