Inital Commit
[oweals/finalsclub.git] / node_modules / aws-lib / lib / ses.js
1 exports.init = function (genericAWSClient) {
2   var createSESClient = function (accessKeyId, secretAccessKey, options) {
3     options = options || {};
4     return sesClient({
5       host: options.host || "email.us-east-1.amazonaws.com",
6       path: options.path || "/",
7       accessKeyId: accessKeyId,
8       secretAccessKey: secretAccessKey,
9       secure: true,
10       version: options.version
11     });
12   };
13   var sesClient = function (obj) {
14     var aws = genericAWSClient({
15       host: obj.host,
16       path: obj.path,
17       accessKeyId: obj.accessKeyId,
18       secretAccessKey: obj.secretAccessKey,
19       secure: obj.secure,
20       signHeader: true
21     });
22     obj.call = function(action, query, callback) {
23       query["Action"] = action
24       return aws.call(action, query, callback);
25     }
26     return obj;
27   };
28   return createSESClient;
29 };