Check the deed you signed when you bought the property. The only restrictions you are REQUIRED to obey are the ones written on the deed. The HOA cannot enforce anything else.
That may be true, but in every case where I've dealt with a property owner in a condominium/HOA, the deed to each individual property has a provision that says something to this effect: "... subject to the Master Deed, Restrictive Covenants, and Bylaws of the ABC Homeowners Association ... (etc.)"
And when you look at those corresponding documents for the HOA, you see that the HOA has not only an existing set of restrictions you are required to obey, but a legal process in place to amend them or add more.