typescript-aws-s3-helper
TypeScript icon, indicating that this package has built-in type declarations

1.0.8 • Public • Published

typescript-aws-s3-helper

Typescript helper functions for AWS S3 service

Build Status Tests Code Coverage

NPM Version Downloads

Install

npm install typescript-aws-s3-helper@latest

Usage

Default - running in Lambda in your own account

const logger = new Logger(LogLevel.Trace);

const helper = new S3Helper(logger);

const response = await helper.CreateBucketAsync('name');

Running in separate account or not in Lambda

const logger = new Logger(LogLevel.Trace);

const options: AWS.S3.ClientConfiguration = {
    accessKeyId: '{access_key}',
    secretAccessKey: '{secret_key}',
    region: 'us-east-1',
};

const repository = new AWS.S3(options);

const helper = new S3Helper(logger,
    repository);

const response = await helper.CreateBucketAsync('name');

Package Sidebar

Install

npm i typescript-aws-s3-helper@1.0.8

Version

1.0.8

License

MIT

Unpacked Size

56.9 kB

Total Files

21

Last publish

Collaborators

  • kbrashears5