U
    W¨+dK  ã                   @   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 )	é    )ÚSNSConnection)Ú
RegionInfoÚget_regions)Úconnectc                   C   s   t dtdS )z
    Get all available regions for the SNS service.

    :rtype: list
    :return: A list of :class:`boto.regioninfo.RegionInfo` instances
    Úsns)Úconnection_cls)r   r   © r   r   ú5/tmp/pip-unpacked-wheel-dlxw5sjy/boto/sns/__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.sns.connection.SNSConnection`.

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

    :rtype: :class:`boto.sns.connection.SNSConnection` 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.sns.connectionr   Zboto.regioninfor   r   r   r
   r   r   r   r   r	   Ú<module>   s   
