Permalink
Browse files

Renamed config to options in the service and client class constructors.

  • Loading branch information...
1 parent 5c164a1 commit 8d32fd9240f408ca499a648dc885b1737d94901e @trevorrowe trevorrowe committed Dec 4, 2012
Showing with 17 additions and 20 deletions.
  1. +4 −4 lib/services/dynamodb.js
  2. +4 −7 lib/services/ec2.js
  3. +5 −5 lib/services/s3.js
  4. +4 −4 lib/services/simpleworkflow.js
View
8 lib/services/dynamodb.js
@@ -21,8 +21,8 @@ require('../sigv4');
AWS.DynamoDB = inherit({
- constructor: function DynamoDB(config) {
- AWS.Service.call(this, config);
+ constructor: function DynamoDB(options) {
+ AWS.Service.call(this, options);
}
});
@@ -32,9 +32,9 @@ AWS.DynamoDB.Client = inherit(AWS.JSONClient, {
/**
* @api private
*/
- constructor: function DynamoDBClient(config) {
+ constructor: function DynamoDBClient(options) {
this.serviceName = 'dynamodb';
- AWS.JSONClient.call(this, config);
+ AWS.JSONClient.call(this, options);
},
/**
View
11 lib/services/ec2.js
@@ -21,20 +21,17 @@ require('../sigv2');
AWS.EC2 = inherit({
- constructor: function EC2(config) {
- AWS.Service.call(this, config);
+ constructor: function EC2(options) {
+ AWS.Service.call(this, options);
}
});
AWS.EC2.Client = inherit(AWS.QueryClient, {
- /**
- * @api private
- */
- constructor: function EC2Client(config) {
+ constructor: function EC2Client(options) {
this.serviceName = 'ec2';
- AWS.QueryClient.call(this, config);
+ AWS.QueryClient.call(this, options);
},
/**
View
10 lib/services/s3.js
@@ -21,8 +21,8 @@ require('../sigvs3');
AWS.S3 = inherit({
- constructor: function S3(config) {
- AWS.Service.call(this, config);
+ constructor: function S3(options) {
+ AWS.Service.call(this, options);
}
});
@@ -32,10 +32,10 @@ AWS.S3.Client = inherit(AWS.RESTXMLClient, {
/**
* @api private
*/
- constructor: function S3Client(config) {
+ constructor: function S3Client(options) {
this.serviceName = 's3';
- AWS.RESTXMLClient.call(this, config);
- this.setEndpoint((config || {}).endpoint, config);
+ AWS.RESTXMLClient.call(this, options);
+ this.setEndpoint((options || {}).endpoint, options);
},
/**
View
8 lib/services/simpleworkflow.js
@@ -21,8 +21,8 @@ require('../sigv3');
AWS.SimpleWorkflow = inherit({
- constructor: function SimpleWorkflow(config) {
- AWS.Service.call(this, config);
+ constructor: function SimpleWorkflow(options) {
+ AWS.Service.call(this, options);
}
});
@@ -32,9 +32,9 @@ AWS.SimpleWorkflow.Client = inherit(AWS.JSONClient, {
/**
* @api private
*/
- constructor: function SimpleWorkflowClient(config) {
+ constructor: function SimpleWorkflowClient(options) {
this.serviceName = 'swf';
- AWS.JSONClient.call(this, config);
+ AWS.JSONClient.call(this, options);
},
/**

0 comments on commit 8d32fd9

Please sign in to comment.