U
    W¨+dê  ã                   @   s<   d dl mZ d dlmZmZ d dlmZ dd„ Zdd„ ZdS )	é    )ÚSTSConnection)Ú
RegionInfoÚget_regions)Úconnectc                   C   s   t dtdS )z
    Get all available regions for the STS service.

    :rtype: list
    :return: A list of :class:`boto.regioninfo.RegionInfo` instances
    Ústs)Úconnection_cls)r   r   © r   r   ú5/tmp/pip-unpacked-wheel-dlxw5sjy/boto/sts/__init__.pyÚregions   s    r
   c                 K   s   t d| fdti|—ŽS )aV  
    Given a valid region name, return a
    :class:`boto.sts.connection.STSConnection`.

    :type: str
    :param region_name: The name of the region to connect to.

    :rtype: :class:`boto.sts.connection.STSConnection` or ``None``
    :return: A connection to the given region, or None if an invalid region
             name is given
    r   r   )r   r   )Zregion_nameZ	kw_paramsr   r   r	   Úconnect_to_region&   s    ÿr   N)Zboto.sts.connectionr   Zboto.regioninfor   r   r   r
   r   r   r   r   r	   Ú<module>   s   
