o ckF[ @s@ddlmZmZddlmZGdddeZddZddZd S) ) RegionInfo get_regions)connectc@seZdZddZdS) S3RegionInfocKs |jr|jdd|ji|SdS)a Connect to this Region's endpoint. Returns an connection object pointing to the endpoint associated with this region. You may pass any of the arguments accepted by the connection class's constructor as keyword arguments and they will be passed along to the connection object. :rtype: Connection object :return: The connection to this regions endpoint hostN)connection_clsendpoint)self kw_paramsrr2/usr/lib/python3/dist-packages/boto/s3/__init__.pyr s zS3RegionInfo.connectN)__name__ __module__ __qualname__rrrrr rs rcCsddlm}tdt|dS)z Get all available regions for the Amazon S3 service. :rtype: list :return: A list of :class:`boto.regioninfo.RegionInfo` r S3Connections3 region_clsr)boto.s3.connectionrrrrrrr regions/s rcKs\ddlm}d|vr"|d}|dvr"td||d}|jd i|Std|ft|d|S) Nrrr)Ncustom)namer rrrr)rrpoprr) region_namer rrregionrrr connect_to_region>s   rN)boto.regioninforrrrrrrrrr s