"use strict";

var AWS = require("aws-sdk");

var _require = require("./aws"),
  AwsWrapper = _require.AwsWrapper;

function getS3Compatible(options) {
  var endpoint = new AWS.Endpoint(options.endpoint);
  var s3Compatible = new AWS.S3({
    endpoint: endpoint,
    accessKeyId: options.accessKeyId,
    secretAccessKey: options.secretAccessKey
  });

  return new AwsWrapper(s3Compatible);
}

module.exports = {
  getS3Compatible: getS3Compatible
};
