def METHOD_NAME(role_name, document, allow_recreate=True):
    """
    Create IAM role and attach assume role policy.
    Return role_name if creation succeeds, None if allowing
    recreate while role already exists
    """
    try:
        _make_api_call('create_role',
                       RoleName=role_name,
                       AssumeRolePolicyDocument=document)
        return role_name
    except AlreadyExistsError:
        if allow_recreate:
            return None
        else:
            raise