New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

aws-sdk-client

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aws-sdk-client

client libs for aws-sdk

latest
npmnpm
Version
1.1.0
Version published
Maintainers
1
Created
Source

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

FAQs

Package last updated on 30 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts