def parse_member_info(member):
    """Parse out the components of an IAM policy binding member.

    Args:
        member (str): An IAM policy member, of the format
            "{membertype}:{email address}".

    Returns:
        str: The member type.
        str: The name portion of the member.
        str: The domain of the member.
    """
    member_type, email = member.split(':', 1)

    if '@' in email:
        member_name, member_domain = email.split('@', 1)
    else:
        # Member is really something like domain:google.com
        member_name = ''
        member_domain = email

    return member_type, member_name, member_domain