#NEWLINE# def connect_to_region( region_name , **kw_params ) : #NEWLINE# #INDENT# '\n    Given a valid region name, return a \n    :class:`boto.sdb.connection.SDBConnection`.\n\n    :type: str\n    :param region_name: The name of the region to connect to.\n    \n    :rtype: :class:`boto.sdb.connection.SDBConnection` or ``None``\n    :return: A connection to the given region, or None if an invalid region\n             name is given\n    ' #NEWLINE# for region in regions ( ) : #NEWLINE# #INDENT# if ( region . name == kw_params ) : #NEWLINE# #INDENT# return region . connect ( ** kw_params ) #NEWLINE# #UNINDENT# #UNINDENT# return None