mirror of
https://github.com/amark/gun.git
synced 2025-06-09 15:46:44 +00:00
16 lines
397 B
JavaScript
16 lines
397 B
JavaScript
var AWS = require('../core');
|
|
|
|
AWS.util.update(AWS.SimpleDB.prototype, {
|
|
/**
|
|
* @api private
|
|
*/
|
|
setEndpoint: function setEndpoint(endpoint) {
|
|
if (this.config.region === 'us-east-1') {
|
|
var prefix = this.api.endpointPrefix;
|
|
this.endpoint = new AWS.Endpoint(prefix + '.amazonaws.com');
|
|
} else {
|
|
AWS.Service.prototype.setEndpoint.call(this, endpoint);
|
|
}
|
|
}
|
|
});
|