  In this work, we construct some irreducible components of the space of
two-dimensional holomorphic foliations on $\mathbb{P}^n$ associated to some
algebraic representations of the affine Lie algebra
$\mathfrak{aff}(\mathbb{C})$. We give a description of the generalized Kupka
components, obtaining a classification of them in terms of the degree of the
foliations, in both cases $n=3$ and $n=4$.
