We report an amplitude analysis and branching fraction measurement of $D_{s}^{+} rightarrow K^{+}K^{-}pi^{+}$ decay using a data sample of 3.19 $rm fb^{-1}$ recorded with BESIII detector at a center-of-mass energy of 4.178 GeV. We perform a model-independent partial wave analysis in the low $K^{+}K^{-}$ mass region to determine the $K^{+}K^{-}$ S-wave lineshape, followed by an amplitude analysis of our very pure high-statistics sample. The amplitude analysis provides an accurate determination of the detection efficiency allowing us to measure the branching fraction ${cal B}(D_{s}^{+} rightarrow K^{+}K^{-}pi^{+}) = (5.47pm0.08_{{rm stat}}pm0.13_{{rm sys}})%$.