/usr/lib/python2.6/site-packages/boto/ec2
Edit: /usr/lib/python2.6/site-packages/boto/ec2/__init__.pyo (2432B)
Ńň
Ĺ-őSc @ sf d Z d d k l Z d d k l Z l Z l Z e i d h Z d Z d Z
d Z d S( sX
This module provides an interface to the Elastic Compute Cloud (EC2)
service from AWS.
i˙˙˙˙( t
EC2Connection( t
RegionInfot get_regionst load_regionst ec2c K s t d d t S( s:
Get all available regions for the EC2 service.
You may pass any of the arguments accepted by the EC2Connection
object's constructor as keyword arguments and they will be
passed along to the EC2Connection object.
:rtype: list
:return: A list of :class:`boto.ec2.regioninfo.RegionInfo`
R t connection_cls( R R ( t kw_params( ( s5 /usr/lib/python2.6/site-packages/boto/ec2/__init__.pyt regions! s
c K sy d | j o3 t | d t o | | d i j o t | Sx2 t | D]$ } | i | j o | i | SqM Wd S( sČ
Given a valid region name, return a
:class:`boto.ec2.connection.EC2Connection`.
Any additional parameters after the region_name are passed on to
the connect method of the region object.
:type: str
:param region_name: The name of the region to connect to.
:rtype: :class:`boto.ec2.connection.EC2Connection` or ``None``
:return: A connection to the given region, or None if an invalid region
name is given
t regionN( t
isinstanceR t nameR R t connectt None( t region_nameR R ( ( s5 /usr/lib/python2.6/site-packages/boto/ec2/__init__.pyt connect_to_region. s !
c K s0 x) t | D] } | i | j o | Sq
Wd S( s@
Find and return a :class:`boto.ec2.regioninfo.RegionInfo` object
given a region name.
:type: str
:param: The name of the region.
:rtype: :class:`boto.ec2.regioninfo.RegionInfo`
:return: The RegionInfo object for the given region or None if
an invalid region name is provided.
N( R R
R ( R
R R ( ( s5 /usr/lib/python2.6/site-packages/boto/ec2/__init__.pyt
get_regionG s
N( t __doc__t boto.ec2.connectionR t boto.regioninfoR R R t gett
RegionDataR R R ( ( ( s5 /usr/lib/python2.6/site-packages/boto/ec2/__init__.pyt
s