aws-lib
Version:
Extensible Node.js library for the Amazon Web Services API
29 lines (23 loc) • 674 B
JavaScript
exports.init = init;
function init(genericAWSClient) {
return createSimpleEmailServiceClient;
function createSimpleEmailServiceClient(accessKeyId, secretAccessKey, options) {
options = options || {};
var client = genericAWSClient({
host: options.host || "email.us-east-1.amazonaws.com",
path: options.path || "/",
accessKeyId: accessKeyId,
secretAccessKey: secretAccessKey,
secure: options.secure,
signHeader: true
});
return {
client: client,
call: call
};
function call(action, query, callback) {
query["Action"] = action
return client.call(action, query, callback);
}
}
}