Everything a bit mixed up,...
Which state building code, i.e., which federal state?
What does the development plan say about it?
Is it legally even considered an ancillary structure, or at least a subordinate ancillary structure like a terrace roof?
(A spatial-functional use is likely always given; if necessary, only something about the floor area ratio might be objected to if it is exceeded afterward, but there may be political loopholes here, i.e., whether the ground is sealed at all by the covering. If it is a nature reserve.)
Is a neighborhood law affected at all?
The same applies to the fence; what neighbors agree on among themselves does not have to have legal validity. What regulates this period within 1 year after completion?