Handling Hard Affine SDP Shape Constraints in RKHSs