"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const aws4_1 = __importDefault(require("aws4"));
async function generateS3RequestOptions(bucketName, region, path, method, body, accessKeyId, secretAccessKey) {
    const opts = {
        host: `${bucketName}.s3.amazonaws.com`,
        path,
        body,
        method,
        region
    };
    return aws4_1.default.sign(opts, {
        accessKeyId,
        secretAccessKey
    });
}
exports.default = generateS3RequestOptions;
//# sourceMappingURL=s3.js.map