> v1 is a sketch of that without any tests yet. I will add if there is
> agreement on
> this being the way forward. This seems like the most straightforward way.
> Maybe others have a different idea.
Attached v2 is cleaned up with a test.
--
Sami Imseih
Amazon Web Services (AWS)