Skip to content

Commit

Permalink
Renamed config to options in the service and client class constructors.
Browse files Browse the repository at this point in the history
  • Loading branch information
trevorrowe committed Dec 4, 2012
1 parent 5c164a1 commit 8d32fd9
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 20 deletions.
8 changes: 4 additions & 4 deletions lib/services/dynamodb.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

});
Expand All @@ -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);
},

/**
Expand Down
11 changes: 4 additions & 7 deletions lib/services/ec2.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},

/**
Expand Down
10 changes: 5 additions & 5 deletions lib/services/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

});
Expand All @@ -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);
},

/**
Expand Down
8 changes: 4 additions & 4 deletions lib/services/simpleworkflow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

});
Expand All @@ -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);
},

/**
Expand Down

0 comments on commit 8d32fd9

Please sign in to comment.