U
    W+dO                     @   s,   d dl mZ d dl mZ dd Zdd ZdS )    )get_regions)connectc                  C   s   ddl m}  td| dS )z
    Get all available regions for the RDS service.

    :rtype: list
    :return: A list of :class:`boto.regioninfo.RegionInfo`
    r   RDSConnectionrds)connection_cls)boto.rds2.layer1r   r   r    r	   6/tmp/pip-unpacked-wheel-dlxw5sjy/boto/rds2/__init__.pyregions   s    r   c                 K   s"   ddl m} td| fd|i|S )a  
    Given a valid region name, return a
    :class:`boto.rds2.layer1.RDSConnection`.
    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.rds2.layer1.RDSConnection` or ``None``
    :return: A connection to the given region, or None if an invalid region
             name is given
    r   r   r   r   )r   r   r   )Zregion_nameZ	kw_paramsr   r	   r	   r
   connect_to_region%   s    r   N)Zboto.regioninfor   r   r   r   r	   r	   r	   r
   <module>   s   