function Service(config) {
    if (!this.loadServiceClass) {
      throw AWS.util.error(new Error(),
        'Service must be constructed with `new\' operator');
    }
    var ServiceClass = this.loadServiceClass(config || {});
    if (ServiceClass) {
      var originalConfig = AWS.util.copy(config);
      var svc = new ServiceClass(config);
      Object.defineProperty(svc, '_originalConfig', {
        get: function() { return originalConfig; },
        enumerable: false,
        configurable: true
      });
      svc._clientId = ++clientCount;
      return svc;
    }
    this.initialize(config);
  }
function Service(config) {
    if (!this.loadServiceClass) {
      throw AWS.util.error(new Error(),
        'Service must be constructed with `new\' operator');
    }
    var ServiceClass = this.loadServiceClass(config || {});
    if (ServiceClass) {
      var originalConfig = AWS.util.copy(config);
      var svc = new ServiceClass(config);
      Object.defineProperty(svc, '_originalConfig', {
        get: function() { return originalConfig; },
        enumerable: false,
        configurable: true
      });
      svc._clientId = ++clientCount;
      return svc;
    }
    this.initialize(config);
  }
function Service ( config ) { if ( ! this . loadServiceClass ) { throw AWS . util . error ( new Error ( ) , 'Service must be constructed with `new\' operator' ) ; } var ServiceClass = this . loadServiceClass ( config || { } ) ; if ( ServiceClass ) { var originalConfig = AWS . util . copy ( config ) ; var svc = new ServiceClass ( config ) ; Object . defineProperty ( svc , '_originalConfig' , { get : function ( ) { return originalConfig ; } , enumerable : false , configurable : true } ) ; svc . _clientId = ++ clientCount ; return svc ; } this . initialize ( config ) ; }
Create a new service object with a configuration object

@param config [map] a map of configuration options
Create a new service object with a configuration object
Creates a new Service instance