def arn_endpoint_wildcard(arn: str) -> str:
    """
    Take an arn containing a full path of endpoints and
    return the arn with a wildcard for all endpoints

    Example
    -------
    input: arn:aws:execute-api:us-east-1:0000000000:XXXYYY/stage/POST/some/endpoint
    output: arn:aws:execute-api:us-east-1:0000000000:XXXYYY/stage/POST/*
    """
    stripped_arn = "/".join(arn.split("/")[0:3])
    return f"{stripped_arn}/*"