prompt: We are currently solving the following issue within our repository. Here is the issue text:
  --- BEGIN ISSUE ---
  Support addtional regions in CloudSearch 
  It appears that boto currently only supports two regions. It would be nice to support the more recently added ones. 
  
  Current list of CloudSearch regions is here: http://aws.amazon.com/cloudsearch/faqs/#Which_AWS_regions_is_CloudSearch_available_in?
  
  I think it just needs to be added to boto/cloudsearch/**init**.py:
  
  return [RegionInfo(name='us-east-1',
                         endpoint='cloudsearch.us-east-1.amazonaws.com',
                         connection_cls=boto.cloudsearch.layer1.Layer1),
              RegionInfo(name='eu-west-1',
                         endpoint='cloudsearch.eu-west-1.amazonaws.com',
                         connection_cls=boto.cloudsearch.layer1.Layer1),
  
  And yes, you can use another region by changing the default field in .boto 
  
  
  --- END ISSUE ---
  
  Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
  --- BEGIN FILES ---
  Path: `boto/cloudsearch/__init__.py`
  Content:
  ```
  1 # Copyright (c) 2012 Mitch Garnaat http://garnaat.org/
  2 # Copyright (c) 2012 Amazon.com, Inc. or its affiliates.
  3 # All Rights Reserved
  4 #
  5 # Permission is hereby granted, free of charge, to any person obtaining a
  6 # copy of this software and associated documentation files (the
  7 # "Software"), to deal in the Software without restriction, including
  8 # without limitation the rights to use, copy, modify, merge, publish, dis-
  9 # tribute, sublicense, and/or sell copies of the Software, and to permit
  10 # persons to whom the Software is furnished to do so, subject to the fol-
  11 # lowing conditions:
  12 #
  13 # The above copyright notice and this permission notice shall be included
  14 # in all copies or substantial portions of the Software.
  15 #
  16 # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  17 # OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-
  18 # ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT
  19 # SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  20 # WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
  21 # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  22 # IN THE SOFTWARE.
  23 #
  24 from boto.ec2.regioninfo import RegionInfo
  25 
  26 
  27 def regions():
  28     """
  29     Get all available regions for the Amazon CloudSearch service.
  30 
  31     :rtype: list
  32     :return: A list of :class:`boto.regioninfo.RegionInfo`
  33     """
  34     import boto.cloudsearch.layer1
  35     return [RegionInfo(name='us-east-1',
  36                        endpoint='cloudsearch.us-east-1.amazonaws.com',
  37                        connection_cls=boto.cloudsearch.layer1.Layer1),
  38             RegionInfo(name='eu-west-1',
  39                        endpoint='cloudsearch.eu-west-1.amazonaws.com',
  40                        connection_cls=boto.cloudsearch.layer1.Layer1),
  41             ]
  42 
  43 
  44 def connect_to_region(region_name, **kw_params):
  45     for region in regions():
  46         if region.name == region_name:
  47             return region.connect(**kw_params)
  48     return None
  49
  ```
  --- END FILES ---
  
  Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.
  
  Here is an example:
  
  ```diff
  diff --git a/examples/server_async.py b/examples/server_async.py
  --- a/examples/server_async.py
  +++ b/examples/server_async.py
  @@ -313,4 +313,4 @@
   
   
   if __name__ == "__main__":
  -    asyncio.run(run_async_server("."), debug=True)
  +    asyncio.run(run_async_server(), debug=True)
  diff --git a/examples/server_sync.py b/examples/server_sync.py
  --- a/examples/server_sync.py
  +++ b/examples/server_sync.py
  @@ -313,5 +313,5 @@
   
   
   if __name__ == "__main__":
  -    server = run_sync_server(".")
  +    server = run_sync_server()
       server.shutdown()
  
  ```
  
golden_diff: diff --git a/boto/cloudsearch/__init__.py b/boto/cloudsearch/__init__.py
  --- a/boto/cloudsearch/__init__.py
  +++ b/boto/cloudsearch/__init__.py
  @@ -38,6 +38,16 @@
               RegionInfo(name='eu-west-1',
                          endpoint='cloudsearch.eu-west-1.amazonaws.com',
                          connection_cls=boto.cloudsearch.layer1.Layer1),
  +            RegionInfo(name='us-west-1',
  +                       endpoint='cloudsearch.us-west-1.amazonaws.com',
  +                       connection_cls=boto.cloudsearch.layer1.Layer1),
  +            RegionInfo(name='us-west-2',
  +                       endpoint='cloudsearch.us-west-2.amazonaws.com',
  +                       connection_cls=boto.cloudsearch.layer1.Layer1),
  +            RegionInfo(name='ap-southeast-1',
  +                       endpoint='cloudsearch.ap-southeast-1.amazonaws.com',
  +                       connection_cls=boto.cloudsearch.layer1.Layer1),
  +
               ]
  
verification_info: {"golden_diff": "diff --git a/boto/cloudsearch/__init__.py b/boto/cloudsearch/__init__.py\n--- a/boto/cloudsearch/__init__.py\n+++ b/boto/cloudsearch/__init__.py\n@@ -38,6 +38,16 @@\n             RegionInfo(name='eu-west-1',\n                        endpoint='cloudsearch.eu-west-1.amazonaws.com',\n                        connection_cls=boto.cloudsearch.layer1.Layer1),\n+            RegionInfo(name='us-west-1',\n+                       endpoint='cloudsearch.us-west-1.amazonaws.com',\n+                       connection_cls=boto.cloudsearch.layer1.Layer1),\n+            RegionInfo(name='us-west-2',\n+                       endpoint='cloudsearch.us-west-2.amazonaws.com',\n+                       connection_cls=boto.cloudsearch.layer1.Layer1),\n+            RegionInfo(name='ap-southeast-1',\n+                       endpoint='cloudsearch.ap-southeast-1.amazonaws.com',\n+                       connection_cls=boto.cloudsearch.layer1.Layer1),\n+\n             ]\n", "issue": "Support addtional regions in CloudSearch \nIt appears that boto currently only supports two regions. It would be nice to support the more recently added ones. \n\nCurrent list of CloudSearch regions is here: http://aws.amazon.com/cloudsearch/faqs/#Which_AWS_regions_is_CloudSearch_available_in?\n\nI think it just needs to be added to boto/cloudsearch/**init**.py:\n\nreturn [RegionInfo(name='us-east-1',\n                       endpoint='cloudsearch.us-east-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='eu-west-1',\n                       endpoint='cloudsearch.eu-west-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n\nAnd yes, you can use another region by changing the default field in .boto \n\n", "before_files": [{"content": "# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify, merge, publish, dis-\n# tribute, sublicense, and/or sell copies of the Software, and to permit\n# persons to whom the Software is furnished to do so, subject to the fol-\n# lowing conditions:\n#\n# The above copyright notice and this permission notice shall be included\n# in all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-\n# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\n# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n# IN THE SOFTWARE.\n#\nfrom boto.ec2.regioninfo import RegionInfo\n\n\ndef regions():\n    \"\"\"\n    Get all available regions for the Amazon CloudSearch service.\n\n    :rtype: list\n    :return: A list of :class:`boto.regioninfo.RegionInfo`\n    \"\"\"\n    import boto.cloudsearch.layer1\n    return [RegionInfo(name='us-east-1',\n                       endpoint='cloudsearch.us-east-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='eu-west-1',\n                       endpoint='cloudsearch.eu-west-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            ]\n\n\ndef connect_to_region(region_name, **kw_params):\n    for region in regions():\n        if region.name == region_name:\n            return region.connect(**kw_params)\n    return None\n", "path": "boto/cloudsearch/__init__.py"}], "after_files": [{"content": "# Copyright (c) 2012 Mitch Garnaat http://garnaat.org/\n# Copyright (c) 2012 Amazon.com, Inc. or its affiliates.\n# All Rights Reserved\n#\n# Permission is hereby granted, free of charge, to any person obtaining a\n# copy of this software and associated documentation files (the\n# \"Software\"), to deal in the Software without restriction, including\n# without limitation the rights to use, copy, modify, merge, publish, dis-\n# tribute, sublicense, and/or sell copies of the Software, and to permit\n# persons to whom the Software is furnished to do so, subject to the fol-\n# lowing conditions:\n#\n# The above copyright notice and this permission notice shall be included\n# in all copies or substantial portions of the Software.\n#\n# THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\n# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABIL-\n# ITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT\n# SHALL THE AUTHOR BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\n# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\n# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS\n# IN THE SOFTWARE.\n#\nfrom boto.ec2.regioninfo import RegionInfo\n\n\ndef regions():\n    \"\"\"\n    Get all available regions for the Amazon CloudSearch service.\n\n    :rtype: list\n    :return: A list of :class:`boto.regioninfo.RegionInfo`\n    \"\"\"\n    import boto.cloudsearch.layer1\n    return [RegionInfo(name='us-east-1',\n                       endpoint='cloudsearch.us-east-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='eu-west-1',\n                       endpoint='cloudsearch.eu-west-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='us-west-1',\n                       endpoint='cloudsearch.us-west-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='us-west-2',\n                       endpoint='cloudsearch.us-west-2.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n            RegionInfo(name='ap-southeast-1',\n                       endpoint='cloudsearch.ap-southeast-1.amazonaws.com',\n                       connection_cls=boto.cloudsearch.layer1.Layer1),\n\n            ]\n\n\ndef connect_to_region(region_name, **kw_params):\n    for region in regions():\n        if region.name == region_name:\n            return region.connect(**kw_params)\n    return None\n", "path": "boto/cloudsearch/__init__.py"}]}