Did I find the right examples for you? yes no

All Samples(10)  |  Call(9)  |  Derive(0)  |  Import(1)

        def connect_to_region(region_name, **kw_params):
    for region in regions():
        if region.name == region_name:
            return region.connect(**kw_params)
    return None
        


src/d/o/docker-registry-HEAD/docker_registry/storage/s3.py   docker-registry(Download)
    def makeConnection(self):
        kwargs = self._build_connection_params()
        if self._config.s3_region is not None:
            return boto.s3.connect_to_region(
                region_name=self._config.s3_region,

src/c/u/cumulus-bundle-handler-1.0.4/cumulus_bundle_handler/bundle_manager.py   cumulus-bundle-handler(Download)
    LOGGER.debug("Connecting to AWS S3")
    connection = s3.connect_to_region(
        config.get('region'),
        aws_access_key_id=config.get('access-key-id'),
        aws_secret_access_key=config.get('secret-access-key'))

src/t/e/telemetry-server-HEAD/http/analysis-service/server.py   telemetry-server(Download)
from boto.ec2 import connect_to_region as ec2_connect
from boto.ses import connect_to_region as ses_connect
from boto.s3 import connect_to_region as s3_connect
from boto.ec2.blockdevicemapping import BlockDeviceType
from boto.ec2.blockdevicemapping import BlockDeviceMapping
ec2 = ec2_connect(app.config['AWS_REGION'])
ses = ses_connect('us-east-1') # only supported region!
s3  = s3_connect(app.config['AWS_REGION'])
bucket = s3.get_bucket(app.config['TEMPORARY_BUCKET'], validate = False)
code_bucket = s3.get_bucket(app.config['CODE_BUCKET'], validate = False)

src/b/i/bigsky-0.0.0/bigsky/outputs/s3_import.py   bigsky(Download)
                     (e, sys.argv[0], FLAGS))
        return 1
    s3 = boto.s3.connect_to_region(FLAGS.bucket_region)
 
    try:

src/b/i/bigsky-0.0.0/bigsky/outputs/exiv2.py   bigsky(Download)
        return 1
 
    s3 = boto.s3.connect_to_region(FLAGS.bucket_region)
 
 

src/s/s/ssh-ca-0.3.1/ssh_ca/s3.py   ssh-ca(Download)
                config, ssh_ca_section, 'region', required=True)
 
            self.s3_conn = boto.s3.connect_to_region(region)
            self.ssh_bucket = self.s3_conn.get_bucket(bucket)
        except S3ResponseError, e:

src/s/s/ssh-ca-HEAD/ssh_ca/s3.py   ssh-ca(Download)
                config, ssh_ca_section, 'region', required=True)
 
            self.s3_conn = boto.s3.connect_to_region(region)
            self.ssh_bucket = self.s3_conn.get_bucket(bucket)
        except S3ResponseError, e:

src/b/r/brenda-HEAD/brenda/aws.py   brenda(Download)
def get_s3_conn(conf):
    region = conf.get('S3_REGION')
    if region:
        conn = boto.s3.connect_to_region(region, **aws_creds(conf))
        if not conn:

src/a/w/awsadvent2012-HEAD/s3-glacier.py   awsadvent2012(Download)
BUCKET="mybucket"
 
c = boto.s3.connect_to_region(REGION)
 
bucket = c.get_bucket(BUCKET)