diff --git a/ts/index.ts b/ts/index.ts index 4f4ef23..b4d0dec 100644 --- a/ts/index.ts +++ b/ts/index.ts @@ -52,6 +52,12 @@ export class Smarts3 { } } + public async createBucket(bucketNameArg: string) { + const smartbucketInstance = new plugins.smartbucket.SmartBucket(await this.getS3Descriptor()); + const bucket = await smartbucketInstance.createBucket(bucketNameArg); + return bucket; + } + public async stop() { await this.s3Instance.close(); }