Virtually every county or municipality has some sort of jurisdiction body that has implemented rules and or ordinances for what you have in mind. These rules can vary even in the same jurisdiction. Proximity to lot lines, fire codes, view impairment, structural integrity, etc. are some of the factors in making a determination. I would not advise you to just go ahead and erect the shed without input from your local county or city plan & zone or building dept. I believe by making this initial contact with someone you will find what you are planning will not violate and codes or ordinances. However, it's best to make sure first.
Dennis (cut2it)
PS... If your thought is to have it installed for you the company doing this will be well versed in any conflicting issues.
C&onstructi&on C&onsultant
Over 40 yrs. as General Contractor for new const. & remodel - retired with time for you.