<s> from boto . regioninfo import RegionInfo , get_regions <EOL> def regions ( ) : <EOL> """<STR_LIT>""" <EOL> from boto . cognito . identity . layer1 import CognitoIdentityConnection <EOL> return get_regions ( '<STR_LIT>' , <EOL> connection_cls = CognitoIdentityConnection ) <EOL> def connect_to_region ( region_name , ** kw_params ) : <EOL> for region in regions ( ) : <EOL> if region . name == region_name : <EOL> return region . connect ( ** kw_params ) <EOL> return None </s>
