ó FRTc@sfdZddlmZddlmZmZmZeƒjdiƒZd„Z d„Z d„Z dS( sX This module provides an interface to the Elastic Compute Cloud (EC2) service from AWS. iÿÿÿÿ(t EC2Connection(t RegionInfot get_regionst load_regionstec2cKstddtƒ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` Rtconnection_cls(RR(t kw_params((s>/opt/freeware/lib/python2.7/site-packages/boto/ec2/__init__.pytregions!s cKssd|kr<t|dtƒr<||djkr<t|Sx0t|D]"}|j|krI|j|SqIWdS(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 tregionN(t isinstanceRtnameRRtconnecttNone(t region_nameRR((s>/opt/freeware/lib/python2.7/site-packages/boto/ec2/__init__.pytconnect_to_region.s cKs.x't|D]}|j|kr |Sq WdS(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(RR R (R RR((s>/opt/freeware/lib/python2.7/site-packages/boto/ec2/__init__.pyt get_regionGs N( t__doc__tboto.ec2.connectionRtboto.regioninfoRRRtgett RegionDataRRR(((s>/opt/freeware/lib/python2.7/site-packages/boto/ec2/__init__.pyts