It’s Blooming!

This plant is still a mystery.  Is this a cactus?  Yucca?  But it’s now blooming – large brown speckled star-like flowers.It is a very unique plant and it’s a nice surprise.  I bought this at a local Market Days and thought it would be great to be hung on my Shepard’s Hook.I needed something the deer didn’t eat, so far, it seems they don’t like it or the flowers as none have been eaten.If anyone knows what this is, would really like to know, appreciate your feedback.