@itwin/object-storage-oss
Version:
Object storage implementation using OSS
21 lines • 919 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createOssS3ClientFrontend = createOssS3ClientFrontend;
/*---------------------------------------------------------------------------------------------
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
* See LICENSE.md in the project root for license terms and full copyright notice.
*--------------------------------------------------------------------------------------------*/
const client_s3_1 = require("@aws-sdk/client-s3");
function createOssS3ClientFrontend(config) {
const { baseUrl, region, accessKey, secretKey, sessionToken } = config;
return new client_s3_1.S3Client({
endpoint: baseUrl,
region,
credentials: {
accessKeyId: accessKey,
secretAccessKey: secretKey,
sessionToken,
},
});
}
//# sourceMappingURL=Helpers.js.map