parameters: (self, region, dry_run=False)
return_statement: return kp
docstring: Create a new key pair of the same new in another region.
          Note that the new key pair will use a different ssh
          cert than the this key pair.  After doing the copy,
          you will need to save the material associated with the
          new key pair (use the save method) to a local file.
  
          :type region: :class:`boto.ec2.regioninfo.RegionInfo`
          :param region: The region to which this security group will be copied.
  
          :rtype: :class:`boto.ec2.keypair.KeyPair`
          :return: The new key pair
docstring_summary: Create a new key pair of the same new in another region.
          Note that the new key pair will use a different ssh
          cert than the this key pair.  After doing the copy,
          you will need to save the material associated with the
          new key pair (use the save method) to a local file.
docstring_tokens: Create a new key pair of the same new in another region . Note that the new key pair will use a different ssh cert than the this key pair . After doing the copy you will need to save the material associated with the new key pair ( use the save method ) to a local file .
function: def copy_to_region(self, region, dry_run=False):
          """
          Create a new key pair of the same new in another region.
          Note that the new key pair will use a different ssh
          cert than the this key pair.  After doing the copy,
          you will need to save the material associated with the
          new key pair (use the save method) to a local file.
  
          :type region: :class:`boto.ec2.regioninfo.RegionInfo`
          :param region: The region to which this security group will be copied.
  
          :rtype: :class:`boto.ec2.keypair.KeyPair`
          :return: The new key pair
          """
          if region.name == self.region:
              raise BotoClientError('Unable to copy to the same Region')
          conn_params = self.connection.get_params()
          rconn = region.connect(**conn_params)
          kp = rconn.create_key_pair(self.name, dry_run=dry_run)
          return kp
function_tokens: def copy_to_region ( self , region , dry_run = False ) : if region . name == self . region : raise BotoClientError ( 'Unable to copy to the same Region' ) conn_params = self . connection . get_params ( ) rconn = region . connect ( * * conn_params ) kp = rconn . create_key_pair ( self . name , dry_run = dry_run ) return kp