Neurotoxin Powered Marketing

    aws-sdk-client
    TypeScript icon, indicating that this package has built-in type declarations

    1.1.0 • Public • Published

    AWS-SDK Client for Node.js

    Call AWS API more easily.

    Getting started

    Install by npm

    $ npm i -S aws-sdk-client
    

    run request function

    You can call AWS API by following method.

    request('AWS_SERVICE_NAME', 'AWS_API_NAME', parameters, [REGION])
    

    The method will returns Promise object.

    async / await

    const { request } = require('aws-sdk-client')
    
    const run = async () => {
      try {
        const item = await request('S3', 'listBuckets', {})
        console.log(item)
      } catch (e) {
        console.log(e)
      }
    }
    run()
    
    { Buckets:
       [ { Name: 'my-example-buckets',
           CreationDate: 2017-12-08T20:37:45.000Z },
    

    Promise

    const { request } = require('aws-sdk-client')
    
    request('S3', 'listBuckets', {})
      .then(data => console.log(data))
    
    { Buckets:
       [ { Name: 'my-example-buckets',
           CreationDate: 2017-12-08T20:37:45.000Z },
    

    API Reference

    https://hideokamoto.github.io/aws-sdk-client/

    Contributors

    • @horike37 - Basic idea

    Publish

    $ npm run build
    $ npm publish
    

    History

    • v0.1.2: Small bug fixed
    • v0.1.1: Small bug fixed
    • v0.1.0: Replace as TypeScript
    • v0.0.3: Small bug fixed
    • v0.0.2: Region bug fixed

    Keywords

    none

    Install

    npm i aws-sdk-client

    DownloadsWeekly Downloads

    19

    Version

    1.1.0

    License

    MIT

    Unpacked Size

    8.79 kB

    Total Files

    8

    Last publish

    Collaborators

    • hideokamoto