o ckF[ @sLddlmZddlmZmZddlmZGdddeZddZdd Zd S) ) IAMConnection) RegionInfo get_regions)connectc@seZdZddZdS) IAMRegionInfocKs |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_paramsrr3/usr/lib/python3/dist-packages/boto/iam/__init__.pyr s zIAMRegionInfo.connectN)__name__ __module__ __qualname__rrrrr rs rcCs&tdttd}|tddtd|S)z Get all available regions for the IAM service. :rtype: list :return: A list of :class:`boto.regioninfo.RegionInfo` instances iam region_clsr universaliam.amazonaws.comnamer r )rrrappend)regionsrrr r/srcKs>|dkrtddtd}|jdi|Std|fttd|S)aV Given a valid region name, return a :class:`boto.iam.connection.IAMConnection`. :type: str :param region_name: The name of the region to connect to. :rtype: :class:`boto.iam.connection.IAMConnection` or ``None`` :return: A connection to the given region, or None if an invalid region name is given rrrrrNr)rrr) region_namer regionrrr connect_to_regionHs  rN) boto.iam.connectionrboto.regioninforrrrrrrrrr s