aws-sdk-service-wrapper

1.0.9 • Public • Published

AWS SDK Service Wrapper

Wrapper around aws-sdk services.

Introduction

aws-sdk-service-wrapper is a wrapper around aws service functions. e.g sns service: publish function When aws-sdk is widely used in the project, (especially in serverless lambda), logic needs to be written to call .promise() function for each services you use. And also handling of the aws error gets repetitive. To avoid this, this wrapper can be used.

The wrapper will also have AWS custom service extention feature such as function combining two functions etc. eg emptyFolderKey :- combine S3 listing and deleting

Installation

Using npm

npm install -s aws-sdk-service-wrapper

Using yarn

yarn add aws-sdk-service-wrapper

Usage

const SNS = require('aws-sdk-service-wrapper')();

SNS .publish({ region, topicArn, message }) .then(/* ... /) .catch(/ ... */)

AWS Services

AWS Service Functions
SNS publish
SQS sendMessage, deleteMessage
S3 listObjectsV2, deleteObjects, emptyBucketFolder

Dependents (0)

Package Sidebar

Install

npm i aws-sdk-service-wrapper

Weekly Downloads

1

Version

1.0.9

License

MIT

Unpacked Size

117 kB

Total Files

15

Last publish

Collaborators

  • ravdevz