1 exports.init = function (genericAWSClient) {
2 var createSESClient = function (accessKeyId, secretAccessKey, options) {
3 options = options || {};
5 host: options.host || "email.us-east-1.amazonaws.com",
6 path: options.path || "/",
7 accessKeyId: accessKeyId,
8 secretAccessKey: secretAccessKey,
10 version: options.version
13 var sesClient = function (obj) {
14 var aws = genericAWSClient({
17 accessKeyId: obj.accessKeyId,
18 secretAccessKey: obj.secretAccessKey,
22 obj.call = function(action, query, callback) {
23 query["Action"] = action
24 return aws.call(action, query, callback);
28 return createSESClient;