2.0.50 • Published 3 years ago

typescript-aws-s3-helper v2.0.50

Weekly downloads
56
License
MIT
Repository
github
Last release
3 years ago

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

import * as S3 from '@aws-sdk/client-s3';

const logger = new Logger(LogLevel.Trace);

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

const repository = new S3.S3(options);

const helper = new S3Helper(logger, repository);

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

Notes

If no options are supplied, will default to us-east-1 as the region

Development

Clone the latest and run

npm run prep

to install packages and prep the git hooks

2.0.50

3 years ago

2.0.49

3 years ago

2.0.48

4 years ago

2.0.47

4 years ago

2.0.46

4 years ago

2.0.1

4 years ago

2.0.44

4 years ago

2.0.45

4 years ago

2.0.42

4 years ago

2.0.43

4 years ago

2.0.31

4 years ago

2.0.41

4 years ago

1.0.197

4 years ago

2.0.17

4 years ago

2.0.16

4 years ago

2.0.2

4 years ago

1.0.175

5 years ago

1.0.162

5 years ago

1.0.135

5 years ago

1.0.114

5 years ago

1.0.101

5 years ago

1.0.86

5 years ago

1.0.85

5 years ago

1.0.69

5 years ago

1.0.68

5 years ago

1.0.46

5 years ago

1.0.44

5 years ago

1.0.37

5 years ago

1.0.36

5 years ago

1.0.31

5 years ago

1.0.28

5 years ago

1.0.29

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.10

5 years ago

1.0.20

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.15

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago