def create_ssh_key(kwargs=None, call=None):
    '''
    Create an ssh key
    '''
    if call == 'action':
        raise SaltCloudSystemExit(
            'The create_ssh_key function must be called with '
            '-f or --function'
        )

    conn = get_conn()

    # Assemble the composite SshKey object.
    ssh_key = _get_ssh_key(kwargs)

    data = conn.create_ssh_key(ssh_key=ssh_key)

    return {'SshKey': data}
Create an ssh key