def make_s3_conn(self, region=''):
        # give a non-cryptic error message if boto isn't installed
        if boto is None:
            raise ImportError('You must install boto to connect to S3')

        # self._s3_endpoint overrides region
        host = self._s3_endpoint or s3_endpoint_for_region(region)

        log.debug('creating S3 connection (to %s)' % host)

        raw_s3_conn = boto.connect_s3(
            aws_access_key_id=self._aws_access_key_id,
            aws_secret_access_key=self._aws_secret_access_key,
            host=host,
            security_token=self._aws_security_token)
        return wrap_aws_conn(raw_s3_conn)
Return an RBClient object for the server.
dataset/ETHPy150Open Yelp/mrjob/mrjob/fs/s3.py/S3Filesystem.make_s3_conn--crossover with--dataset/ETHPy150Open reviewboard/rbtools/rbtools/commands/__init__.py/Command._make_api_client