# File lib/aws/core/service_interface.rb, line 19
      def self.included base

        base.send(:attr_reader, :config)
        base.send(:attr_reader, :client)

        base.module_eval('module Errors; end')

        unless base::Errors.include?(Errors)
          base::Errors.module_eval { include Errors }
        end

        AWS::Core::MetaUtils.extend(base) do

          # @api private
          def endpoint_prefix prefix = nil, options = {}
            if prefix
              @endpoint_prefix = prefix
              @global_endpoint = !!options[:global]
            end
            @endpoint_prefix
          end

          # @api private
          def global_endpoint?
            @global_endpoint
          end

          def regions
            RegionCollection.new(:service => self)
          end

        end

      end