Determines whether shape is an event stream.
shape
static bool isEventStream(Shape shape) => shape.getType() == ShapeType.union && shape.isStreaming;