def METHOD_NAME(self, endpoint_id: str) -> OriginEndpoint:
    try:
        return self._origin_endpoints[endpoint_id]
    except KeyError:
        raise ClientError(
            "NotFoundException", f"origin endpoint with id={endpoint_id} not found"
        )