import re


def _extract_from_arn(arn, position):
    """
    Helper Function to extract part of an ARN

    :param arn: Arn to extract from
    :param position: Position in Arn of interest
    :return: String containing value at requested position
    """

    return re.findall("(.*?):", arn)[position]