'Creates a new keypair
@note: This is a non-standard extension API, and only works for EC2.
:param      name: The name of the keypair to Create. This must be
unique, otherwise an InvalidKeyPair.Duplicate exception is raised.
:type       name: ``str``
:rtype: ``dict``'

def ex_create_keypair(self, name):

    warnings.warn('This    method    has    been    deprecated    in    favor    of    create_key_pair    method')
    key_pair = self.create_key_pair(name=name)
    result = {'keyMaterial': key_pair.private_key, 'keyFingerprint': key_pair.fingerprint}
    return result
